Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
633
Problem with legend in 3d stack chart
posted

Hi!

 I bind my stack chart to a datatable with two columns. The first column is a string type and the second is a double type.

for ex

City, Sales

 LA, 100

CA, 200

I recently switched from a 2d stack bar chart to a 3d one. Everything was working fine in the 2d chart. The legend had entries for the city column. WHne i changed the type to 3d stack bar.. without changing anything. the legend only shows the entry sales. where as the different city bars have different colors.

 

Why is this happening. Is there someway to tell the chart which column to use for the legend?

 

Ahmad

 

Parents
  • 26458
    Offline posted

    That's strange. I'm not able to see any such difference; the two chart types behave exactly the same. What version of net advantage are you using, and what build? Also, it might help if you could post a code snippet.

    Stack chart legend displays the column labels or the row labels (when SwapRowsAndColumn = true). This usually works automatically, but you could try using chart.Data.SetColumnLabels or chart.Data.SetRowLabels to assign column/row labels.

    Thanks.

Reply Children