Skip to content

Is there any way to make such this chart as this #10104

Answered by Udemology
matinwd asked this question in Q&A
Discussion options

You must be logged in to vote

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>

<script>
// setup 
const data = {
  labels: ['Kitchen', 'Patio', 'Bath', 'Garden'],
  datase…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@matinwd
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by matinwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants