-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Yes this is possible, you can use extra datasets with object notation to fill those gaps, you can use line segments styling or you can make use of a line annotation from the annotation plugin |
Beta Was this translation helpful? Give feedback.
-
Hi Matinwd, Your picture looks more like a gantt chart instead of a line chart. If you need to have 'connecting lines' then you should use a line chart. But if I look at your new picture i looks like a gantt chart or floating bar chart. If you copy the JS code below you have a quick sample. Hope this helps. ` <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
Beta Was this translation helpful? Give feedback.
Hi Matinwd,
Your picture looks more like a gantt chart instead of a line chart. If you need to have 'connecting lines' then you should use a line chart. But if I look at your new picture i looks like a gantt chart or floating bar chart.
There is whole video about gantt/floating bar chart here: https://youtu.be/0AUALgE0Lvg
If you copy the JS code below you have a quick sample. Hope this helps.
` <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.bundle.min.js"></script>