Hi,
I have a requirement to draw a Column chart having Numeric x and y axis. Given below is sample snapshot:
I have gone through the samples and forums but no luck. I tried many things with code but only numeric Y-axis is possible and x-axis always remain Text.
Any help please?
-------------------------------------------
Hi Mike,
I am not able to post reply... So, trying to edit my question:
Thanks for quick response. x axis values in my case might not always be unique but still I am interested in having a working sample or reference of using category axis and having labels be the numbers. Can you please guide me further?
A working sample can help me a great deal.
Thanks in anticipation.
Hi Eric,
I've put together a small sample that you demonstrates how to set up a Column Chart with CategoryXAxis. Please let me know if it works for you.
ColumnChart.zip
Thanks for quick response. The x axis values in my case might not always be unique but still I am interested in having a working sample or reference to how I can use Category axis to have labels be the numbers. This way I can play with x axis to achieve what I am after...
Therefore, can you please guide me further? A working sample can help a great deal.
Thanks in anticipation!
Our ColumnChart can use a NumericYAxis or PercentChangeYAxis with a CategoryXAxis, TimeXAxis, or OrdinalTimeXAxis. You can read more about our Series Requirements in our documentation.
That being said, you can probably still get this UI depending on your requirement. What does the X position of your columns represent? If there will only be one column for a unique X value, you can use a Category axis and have the labels be the numbers. If the X values aren't unique or have varying distances between them, a column chart may not be the most accurate representation of the data and it may be better to user a scatter plot instead of a column chart.
Please let me know if you have any questions.