Jump to content
JChartFX Community
  • 0

DataGrid rows change to colums when dock on bottom area



I'm using the DataGrid to display, for example, months and two series like this:

var data = [
{ "Month": "Jan", "A": 100, "B": 300 },
{ "Month": "Feb", "A": 130, "B": 200 },

When the datagrid dock is on the right area, months are listed in rows and series in columns.

But when the datagrid dock is on the bottom area, months are listed in columns and series in rows.

How can I make the months to stay in rows when the datagrid dock is on the bottom area?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

The rationale for this decision is that in most cases there are more points than series and also we try (if possible) to align the data grid values with the markers.


In our next build, data grid will expose a setTransposed(bool) method that will allow you to flip our default behavior.





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.

Answer this question...

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