Home forums Using CanvasJS Change Chart type from dropdown

This topic contains 1 reply, has 2 voices, and was last updated by  Bivek Singh 4 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15530

    Priya
    Member

    var chartType = document.getElementById(‘chartType’);
    chartType.addEventListener( “change”, function(){
    chart.options.data[0].type = chartType.options[chartType.selectedIndex].value;
    chart.render();

    this code is getting error for my multiseries column chart
    what changes should be done for my correct output

    #15541

    Bivek Singh
    Moderator

    @priya

    I’m sorry but we couldn’t quite understand your requirement. Can you please create JSFiddle representing the problem that you’re facing so that we can look into the issue and help you out in better way?

    —-
    Bivek Singh,
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.