Jump to content
Software FX Community

How to customize the data in the datagrid-ChartFX Evaluation


Recommended Posts

I used ListProvider to populate the data for my chart.

By the default the X-Axis Lables are the headers for my Data Grid.

I need to have different customized lables and the x axis lables as data under them.

can anyone help please

 

//Sample Code

chart1.getDataSourceSettings().setDataSource(lstProvider);

chart1.setWidth(750);

chart1.setHeight(750);

chart1.setGallery(Gallery.BAR);

chart1.getAllSeries().setStacked(Stacked.NORMAL);

 

chart1.getData().setPoints(10);

chart1.getAxisY().setMin(0);

chart1.getAxisY().setMax(800);

chart1.getAxisY().setStep(100);

chart1.getAxisY().getTitle().setText("test");

 

//Series

 

chart1.getSeries().get(0).setText("A");

chart1.getSeries().get(1).setText(

"B");chart1.getSeries().get(2).setText("C");

 

chart1.getAxisX().setLabelAngle((short) 90);

 

DataGrid obj = chart1.getDataGrid();

chart1.getDataGrid().setVisible(true);

chart1.getDataGrid().setDock(DockArea.BOTTOM);

obj.setVisible(true);

chart1.renderControl();

 

%>
Link to post
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.

Loading...
×
×
  • Create New...