Jump to content
Software FX Community

Chart taking List of generic data


Bober02

Recommended Posts

Hey everyone, I have a huge problem with passing data to charting component. I created a data IDataPoint<T>, with properties:

T X  -> generic

decimal Y 

 and then I pass a List<IDataPoint<T>> to charting component and set XAxis to point to property X.

 Now, Charting component cannot work out on its own, when I pass him List of IDataPoint<decimal> that X is a decimal number, so I get 1 instead of e.g. 1.6584. Can I manually set the Axis property to tell explicitly that X is a decimal number?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...