Skip to content
+

Charts - Line demonstration

This page groups demonstration using line charts.

SimpleLineChart

  • pv
  • uv
Page APage BPage CPage DPage EPage FPage G02,0004,0006,0008,00010,0…
Press Enter to start editing
  • pv
  • uv
Page APage BPage CPage DPage EPage FPage G02,0004,0006,0008,00010,0…
  • pv
  • uv
Page APage BPage CPage DPage EPage FPage G02,0004,0006,0008,00010,0…1,5…2,0…2,5…3,0…3,5…4,0…
Press Enter to start editing
Max PV PAGEMaxPage APage BPage CPage DPage EPage FPage G02,0004,0006,0008,00010,0…
Page APage BPage CPage DPage EPage FPage G02,0…4,0…
Page APage BPage CPage DPage EPage FPage G02,0…4,0…
Press Enter to start editing
12/3101/0501/1001/1501/2001/2501/3002/0402/0902/14−600−400−2000200400600

Line with forecast

To show that parts of the data have different meanings, you can render stylised lines for each of them.

In the following example, the chart shows a dotted line to exemplify that the data is estimated. To do so, the slots.line is set with a custom component that render the default line twice.

  • The first one is clipped to show known values (from the left of the chart to the limit).
  • The second one is clipped to show predictions (from the limit to the right of the chart) with dash styling.

Additionally, an uncertainty area is shown to represent the uncertainty of the forecast.

0123456780246

CustomLineMarks

Notice that using another shape than "circle" renders a <path /> instead of the <circle /> for mark elements. This modification implies a small drop of rendering performances (around +50ms to render 1.000 marks).

  • pv
  • uv
Page APage BPage CPage DPage EPage FPage G02,0004,0006,0008,00010,0…

API

See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.