Skip to content

Chart

Sectile Chart draws line, scatter, bar, heatmap, pie, and donut charts. Use the Vue components for a Vue application, connect it to existing HTML with the DOM API, or use the renderer-independent package when you need to draw the result yourself.

Your records stay in ordinary arrays. You choose which fields supply the ID and plotted values, and Sectile handles scales, selection, panning, zooming, hit testing, and Canvas rendering.

Try every built-in chart

Switch between the six chart types below. Hover or select a mark, then use the visible controls on Cartesian charts to move or resize the horizontal range. Open Code for a complete Vue or DOM example you can adapt.

Weekly revenue trend

Show change across ordered values as a continuous line.

Hovered datum
None
Selected datum
None
Hover or select a mark. Cartesian charts expose buttons to pan, zoom, and reset the horizontal domain.

Choose a chart

What you want to showChart
Change over time or another ordered valueLine
Relationship between two numeric valuesScatter
Comparison between categoriesBar
Concentration across two dimensionsHeatmap
A few parts of one totalPie
Parts of a total with room for a center labelDonut

Line, scatter, bar, and heatmap charts use an x-axis and y-axis. Pie and donut charts use a radial coordinate and do not have pan or zoom controls.

Sectile does not currently provide first-class histogram, stacked-bar, area, candlestick, box-plot, gauge, map, network, contour, or 3D chart components. A custom renderer can cover some of these cases, but it requires more work than the built-in chart types.

Choose an integration

Your applicationInstallStart with
Vuevue @sectile/chart @sectile/dom @sectile/vueChartRoot
Existing HTML and TypeScript@sectile/chart @sectile/domcreateDOMChart
Custom renderer or non-browser host@sectile/chartcreateChartController

@sectile/chart is needed only when you import the chart entry points from @sectile/dom or @sectile/vue. Other DOM and Vue features do not pull it into your application.

Continue by task

TaskGuide
Map records to axes and update dataData and scales
Build a custom renderer, tooltip, or hit testDrawing and hit testing
Add selection, keyboard access, pan, and zoomInteraction and state
Connect existing browser elementsDOM rendering
Compose a chart in a Vue templateVue composition
Choose how much detail to keep with large dataLarge datasets

What your application still provides

Sectile reads and validates data you provide, but it does not fetch that data or decide how values should be formatted. Your application still supplies loading and error states, colors and layout, number and date formatting, annotations, and any saved selection or visible range.

The DOM and Vue integrations measure the chart, render it with Canvas, expose accessible labels, and remove their browser resources when disconnected or unmounted.

Released under the MIT License.