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
695
How to plot numeric values on X & Y axis in ultrachart
posted

I have a datatable (shown below),which i provide as datasource to my ultrachart.The datatype of all the 3 fields in the datatable is double. i want balance (distinct value) to be plotted on X axis and its corresponding Sale Price(Rs and USD) to be plotted on Y axis.

Balance

Sale Price(Rs)

Sale Price(USD)

25

306750

75000

10

10225

2500

10

4090

1000

5

11349.75

2775

5

5112.5

1250

25

25562.5

6250

25

25562.5

6250

2000

2045000

500000

 

 

 

 

 

 

 

Thanks in advance.

Parents
  • 53790
    posted

    Hello MauryaIsha,

    MauryaIsha said:
    i want balance (distinct value) to be plotted on X axis and its corresponding Sale Price(Rs and USD) to be plotted on Y axis

    Please note that our chart just represent your data  and we didn`t implement distinct functionality. So if you want to achieve desired behavior you should modify your DataSource. I`m not sure what kind of chart you are using into your application, but I will use columnChart to present few possible options:

    Option 1: If we are using your DataTable, then the result will be:

    Option 2: If you want to achieve groupBy Balance column, then this column should be data type String. The result is:

    Option 3: If you modify your DataTable (see the screenshot below), you will get:

    Please let me know if you have any questions.

    Regards

Reply Children