var divHolder = document.getElementById(pDivDetail);
ChartDetail.create(divHolder);
However, the labels on the xaxis are somehow rounded such that 305 becomes 400, 1196 becomes 1200 etc. Additionally, some labels are not displayed, i.e. 1889, 2006 and 3631. Any ideas how to fix this? Any help much appreciated.
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.
Question
timp
Hi, I have the following dataset
which I use to create a bar chart with,
ChartDetail = new cfx.Chart();
ChartDetail.getData().setSeries(1);
ChartDetail.getDataSourceSettings().getFields().clear();
ChartDetail.setDataSource(pItems);
xAxis.setStep(1);
xAxis.setLabelValue(1);
ChartDetail.setGallery(cfx.Gallery.Bar);
var sb = new cfx.SimpleBorder();
ChartDetail.setBorder(sb);
ChartDetail.getAllSeries().setMarkerShape(cfx.MarkerShape.None);
ChartDetail.getLegendBox().setVisible(false);
ChartDetail.getAxisY().setAutoScale(true);
ChartDetail.getAxisY().getGrids().getMajor().setVisible(true);
ChartDetail.getAxisX().getGrids().getMajor().setVisible(true);
ChartDetail.getAxisX().setStyle(ChartDetail.getAxisX().getStyle() | cfx.AxisStyles.ShowEnds);
var divHolder = document.getElementById(pDivDetail);
ChartDetail.create(divHolder);
However, the labels on the xaxis are somehow rounded such that 305 becomes 400, 1196 becomes 1200 etc. Additionally, some labels are not displayed, i.e. 1889, 2006 and 3631. Any ideas how to fix this? Any help much appreciated.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
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.