Jump to content
Software FX Community

Interchanging rows and columns in Chart


gopikrish

Recommended Posts

In chartfx, I am using ChartFX.Gallery.Bar type to display my table data.

My table is like this,

Frequency Total Pass   Total Fail

Nov 1-7   33 16

Nov 8-14   44 23

I am binding the DataSet resultset from this table to Chart object in asp.net webform in C#

But I want my row and column data from table interchanged.

To be clear, right now my row data in table (i.e. Nov 1-7, Nov 8-14 etc..) is displayed in Chart in X-axis

And different categories like "Total Pass", "Total Fail" etc is shown in Bar in different colors.

But what I want is, I want chart to display different categories like "Total Pass", "Total Fail" in X-axis in place of frequency.

And different bars for different frequencies like one for Nov 1-7 etc..

 

How to do this. Thanks in advance.

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...