WebSharper.ChartJs

Chart.js ${version} bindings for F# — with WebSharper

Source

Controls

Every chart below is a live Chart instance. Hover or click a chart to inspect the active elements, or use these buttons to update, reset, destroy and rebuild the whole set.

${status}

Active elements: ${hovered}

Event inspection: ${inspection}

Line

LineChartDataSet with fill and tension, a LinearAxis scale, and a TooltipCallbacks.label callback.

Download the line-chart PNG

Bar

BarChartDataSet with rounded corners and a zero-based y-axis.

Pie

PieChartDataSet — per-slice colours.

Doughnut

DoughnutChartDataSet — same data, cut-out centre.

Polar area

PolarAreaChartDataSet — radial bars.

Radar

Two radar datasets sharing a radial scale, with an ElementConfig.line.

Bubble

BubbleChartDataSet with BubbleDataObject x/y/r points.

Scatter

ScatterChartDataSet with ScatterDataObject points.

Mixed

A line and a bar dataset sharing one ChartData, ordered with order.