[FEATURE] Graph gets squished by legend

Hello all,

So I found a ‘feature’ the graph gets squished by the legend.

What should happen is that the graph should get pushed down and the size of the graph stays the same without having to put the legend in a separate container.

Instead of the graph being pushed down the legend just pushes down the top of the graph and the bottom stays in the same position.

The height of the graph(excluding the legend) should be able to be set in the options.

To reproduce, add data sets and and then you will see.

I am using it to show lot’s of data sets that are added and removed in real time.

Thanks in advance. 😃

Chart.js version: 2.7.2
Browser name and version: Firefox 60.0.2
Link to your project: Clicky!

Before:

capture

After:

capture1

Author: Fantashit

1 thought on “[FEATURE] Graph gets squished by legend

  1. I don’t think this is a bug or should be fixed.

    Instead, the user should recalculate the height and set it appropriately.

Comments are closed.