Skip to content

Basic Graphs

This guide covers the core features of Graphika with interactive examples.

Your First Graph

Create a simple graph with two data series:

Line Styles

Graphika supports two line styles: solid (default) and dashed.

Interpolation Modes

Choose between linear (straight lines) and cubic (smooth curves):

Point Annotations

Enable annotatePoints to draw circles at each data point:

Area Fills

Fill the area under a line using the area option:

Multiple Area Fills

Combine multiple area fills to compare datasets:

Negative Scale Support

The library handles datasets with negative numbers:

Legends

Display a legend to identify multiple data series:

Grid Styles

Customize the grid appearance with gridLineStyle:

Custom Axis Labels

Use tickLabels to display custom labels on the X-axis:

Complete Example

Combining multiple features for a polished visualization:

Stress Test

Testing performance with 10,000 data points. Click the Debug button to see render metrics:

Released under the ISC License.