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
330
UltraCategoryChart bar chart mourseover text can't be numeric?
posted

So I have a simple UltraCategoryChart bar/column chart showing counts by month and year. So the first set of columns is January, with 3 bars reflecting 2020, 2019, and 2018. 

When I mouseover a column I get the month, column title and quantity (see the attached example), which is all great. 

My problem is that I'd like to see just "2020" instead of "Y2020", however when I set the DataTable name to "2020" then no data shows on the chart.

workTable.Columns.Add("Y2020", Type.GetType("System.Double"))
workTable.Columns.Add("Y2019", Type.GetType("System.Double"))
workTable.Columns.Add("Y2018", Type.GetType("System.Double"))

Parents
No Data
Reply
  • 1500
    Verified Answer
    Offline posted

    Hello Ted,

    As per the C# language specifications, identifiers must begin with a character or underscore. 

    The only way to display numeric value would be to create your own custom layer displaying modified values and disable the default tooltip. You can check the samples included in the samples browser: WinCategoryChart -> Annotation Layers, where you can see how this custom layers can be added to the chart.

    Sincerely,

    Tihomir Tonev
    Associate Software Developer
    Infragistics

Children