Jump to content
JChartFX Community
  • 0
Etic

DataGrid rows change to colums when dock on bottom area

Question

Etic    0

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?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
JuanC    3

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.

 

Regards,

 

JuanC

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×