Home Forums StockChart Support Stacked Bar chart label not unqie and images

Stacked Bar chart label not unqie and images

Viewing 2 posts - 1 through 2 (of 2 total)
  • #34755

    1) Look at my stacked-bar-chart y-axis label is repeating why ?
    jsfiddle

    2) How to add image on each stack bar like (each color on that bar should be image of that dataPoint)

    • This topic was modified 3 weeks, 4 days ago by HanojBudime.
    • This topic was modified 3 weeks, 4 days ago by HanojBudime.
    • This topic was modified 3 weeks, 4 days ago by HanojBudime.
    #34779

    @hanojbudime,

    1) Look at my stacked-bar-chart y-axis label is repeating why ? jsfiddle

    In case of Stacked Bar Chart, multiple bars with aligned x values are plotted on same axis & not based on labels. Passing x-values should work fine in this case. Also, we suggest you to use legend instead of indexLabels to denote the name of news-media & to use shared tooltip to make visualization better. Please take a look at this updated JSFiddle with above mentioned changes.
    JavaScript Stacked Bar 100% Chart

    2) How to add image on each stack bar like (each color on that bar should be image of that dataPoint)

    Please take a look at this documentation page for step-to-step tutorial on positioning image on top of chart. This JSFiddle shows an example on positioning image over each bar in Stacked Bar Chart.
    JavaScript Stacked Bar Chart with Image Overlay

    Also refer to this Gallery Page & this JSFiddle for more examples on positioning image on top of chart along with complete code.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.