Click here to Skip to main content
15,843,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I am trying to plot double on the y-axis and string on the x-axis.

i am using datapoints to plot the chart as follows :

dp = new DataPoint("apple", 1532);

i get the following errors.

Argument 2: cannot convert from 'int' to 'string'

Argument 1: cannot convert from 'string' to 'double'

I have set the chart series properties to have x-axis- string and y-axis double.

NB. I have to use datapoints to plot the graph because i am using tooltips for the datapoints that display alot of data from the database.

Any suggestions?


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900