[Question] how to draw a dash border for specific dataset?

as described in http://stackoverflow.com/questions/37054620/change-chart-js-bar-chart-border-to-dotted-line:

Chart.helpers.each(myChart.getDatasetMeta(0).data, function (rectangle, index) {
    rectangle.draw = function () {
        myChart.chart.ctx.setLineDash([10, 10]);
        Chart.elements.Rectangle.prototype.draw.apply(this, arguments);
    }
}, null);

i would like to know how can i make the dashed line only for specific dataset. thanks!

image

Thanks!

Author: Fantashit

1 thought on “[Question] how to draw a dash border for specific dataset?

  1. I know this issue is closed. But why is borderDash never implemented in for a bar chart?
    Just because no one cared about it, or does it have a particular reason?

Comments are closed.