oxyplot / oxyplot

A cross-platform plotting library for .NET
https://oxyplot.github.io/
MIT License
3.3k stars 963 forks source link

In CategoryAxis i'm not able to set values for XAxis and YAxis #2057

Open Sateesh6600 opened 10 months ago

Sateesh6600 commented 10 months ago

@objorke I searched for sample code on how to implement CategoryAxis, but I haven't gotten any code. Currently, I replaced the Coulumn series with Barseries. In this, I'm facing the issues below

  1. How to set the title for plotModel.

  2. Not able to set values for CategoryAxis.

Can someone help me out with this issue? if I receive a sample code I will check and will update my code. I have attached a screenshot of my code.

issue

VisualMelon commented 10 months ago
  1. PlotModel.Title sets the title of the plot
  2. Not sure what you mean about the values: can you describe what you want/provide a mock-up picture

You can see a set of examples of BarSeries with and without CategoryAxis in https://github.com/oxyplot/oxyplot/blob/ce7d4676968f32606ab4a97f0b26acb8a6941e9e/Source/Examples/ExampleLibrary/Series/BarSeriesExamples.cs#L22

Sateesh6600 commented 10 months ago

@VisualMelon @objorke Values means XAxis Values I used 1 to 24 Number as Hours. with the help of source code my issue was resolved. now I will make user friendly plot.
thank you so much for your help!!

I'm working on a Trading Desktop Application, so we need graphs user-friendly so that the user can do their analysis easily.

Could you please suggest to me IMPORTANT tips?