Relative Content

Tag Archive for chart.js

Horizontal “stock price range” chart in chartjs

I’d like to a chart that resembles a “stock price range” chart such below – this has an implied range (in this case “52-week”), two data labels (for low and high – each end) and a point representing current price:

Adding Custom Left Padding to Chart.js Title

I want to add left padding to the title of my Chart.js chart. Currently, Chart.js only allows setting padding for the top and bottom of the title. I need the title to be positioned 200px from the left side. What are some workarounds or solutions to achieve this?

In Chartjs, how can I set the scales.y.min value externally

I am using a linear chart and using it to visualise waveshapes that can be quite complex. The application requires the data y range to be pre-scaled based on variable external requirements, with typical limits being from (-10:0) through to (-500:0). By default, without an initial pre-scaled y axis, the chart dynamically rescales itself as the data arrives.

Strikethrough on label text not working when using generateLabel

The default functionality of label item text having a strikethrough applied when clicking on it from within the legend is not working. I would like to fix this issue so the strikethrough is applied (or toggled off) when clicked and the corresponding data is hidden from or shown to the chart.

Strikethrough on label text not working when using generateL

The default functionality of label item text having a strikethrough applied when clicking on it from within the legend is not working. I would like to fix this issue so the strikethrough is applied (or toggled off) when clicked and the corresponding data is hidden from or shown to the chart.