Hi,
ColumnChart and BarChart requires its X-Axis's AxisDataType to be a String. But as per my Project requirement, I want to show values(25,30, etc) against time(11:30:00 Am, 11:31:00 Am) as bars. I tried all the ways to get it but couldn't get succesful. Can someone please suggests me, how it is possible without chaning the project requirement.
Sorry, column and bar charts cannot be plotted on a time axis. A workaround can be to convert time values into string values.
Hi Max, thanks for the response
I did this in the same way suggested by you. I got the output. However I tried one more requirement with the same solution. The requirement is as follows:.
1. I have two series which should be showed in one layer, whoset chart ype sctter chart. The X-axis of this layer is Time type.
2. I have one more series which should be shown on another layer whose chart type is ColumnChart where I have created one more X-axis with AxisDataType set to string(suggested by you). Now these two layers belongs to same chart area and first layer Y axis set to Y-Axis and second layer Y Axis set to Y2-Axis. And their X-axis set to X-Axis with Time type and X-Axis with string type respectively
3. All these series are getting data randomly. But two X-axes (one with String type and other with Time type) are not moving correctly. To explain it clearly, I have values for these two layer at same time say 11:30:00 Am , but it is showing two labels on X-Axis 11:30:00 Am, 11:30:00 Am, and showing these values at these labels.
To solve this I have tried by setting Axis RangeType to Custom and trying to set min and max values to these X-Axes by identifying the min and max values of all these three series. I did not find any item for the second layer, since its X-Axis type is string.
Can you suggest me whether I am doing correct for this type of requirement. If yes, could you please tell me how should I set min and max range to X-axis whose axis data type is string. If not, could you please tell me how should I get this feature?
Thanks in Advance.....
Scatter charts can only be used to display XYSeries and XYSeries cannot contain time values, only numeric values. However, time values are really just numbers and if you convert time values into ticks, you can use them in XYSeries.
Column charts can't put 2 distinct data points in the same position. Each new column in a column chart is placed to the right of the last column. All columns have to be evenly spaced. I don't think you can use a column chart for your requirement.
What you can do, is custom draw the columns inside FillSceneGraph event, which allows you to place any shape at any location. This method can be very tricky and doesn't always work for everyone, but it's the only workaround i can think of. Look at our help articles and forum posts for samples on using FillSceneGraph event if you haven't used it before.