remove([Boolean updateChart = true])

Removes the specified Subtitle from array of Subtitles.

Parameters:
        updateChart: When true, updates the chart automatically after removing subtitle. Defaults to true.

Example:
        chart.subtitles[1].remove();
Note:
  • Chart should be rendered before you can use this method.
var  chart =  new  CanvasJS.Chart("container",
{
    .
    .
    subtitles: [{
        //First subtitle
    }, {
        //Second subtitle
    },
    .
    ]
    .
    . 
});
chart.render();

chart.subtitles[0].remove();
Try Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question