Quickstart
Get a fully interactive chart running in your application in just a few steps. This guide will walk you through creating a basic line chart with real-time interactivity.Create your first chart
Create an HTML container
Add a container element to your HTML where the chart will be rendered. The chart will automatically adapt to the container’s dimensions.
Import and initialize the chart
Import the That’s it! Your chart is now rendered and fully interactive.
Chart class from Kinetix Charts and create a new chart instance with your data.Try the interactions
The chart comes with built-in interactivity - no additional configuration needed:
- Pan: Click and drag on the chart to pan along the X-axis
- Zoom: Use your scroll wheel to zoom in and out
- Tooltips: Hover over data points to see their exact values
The Y-axis automatically scales to fit the visible data range when you pan or zoom. This ensures your data is always displayed at an optimal scale.
Complete working example
Here’s a complete HTML file you can use to test Kinetix Charts:Understanding the configuration
Let’s break down the chart configuration:theme: Sets the color scheme ('light'or'dark')series: Array of data series to display on the charttype: Chart type ('line','bar','scatter','pie')name: Series name shown in the legend and tooltipscolor: Hex color code for the seriesdata: Array of data points withxandycoordinates
Default features
Every Kinetix Chart includes these features by default: Pan and zoom: Enabled automatically for charts with numeric X-axis values. Pan and zoom are disabled for categorical charts (like bar charts with text labels) to ensure all categories remain visible. Tooltips: Hover over any data point to see its value. For charts with multiple series, the tooltip shows all series values at that X coordinate. Responsive sizing: Charts automatically resize when the container dimensions change. Smart legend: A legend appears in the top-right corner showing all series. It automatically repositions to avoid blocking your data. Smooth animations: All chart types render with smooth animations on initial load.Next steps
Now that you have a working chart, explore more features:Chart types
Learn about line, bar, scatter, pie, and stacked charts
API reference
Explore the complete API and configuration options
Theming
Customize colors and themes for your charts
Performance
Optimize charts for large datasets