Home Forums WinForms controls Xceed Chart for WinForms Stacked Bar Series with DateTime scale

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #18631 |

    How to create Stacked Bar Series Chart with datetime scale?
    DataItems grouped by Item.Name in Bar Series,every Item has Value and DateTime.

    Imported from legacy forums. Posted by oxy (had 2979 views)

    Xceed Support
    Post count: 5658

    Yes, I could not get that to work either. I ended up using a Dimension Scale instead of a DateTime scale and manually populating the axis labels, like this.

    Axis axis = chart.Axis(StandardAxis.PrimaryX);
    axis.ScaleMode = AxisScaleMode.Dimension;
    AxisScaleDimension dimensionScale = axis.DimensionScale;
    dimensionScale.AutoLabels = false;
    dimensionScale.DisplayDataPointsBetweenTicks = true;
    // Then do something like this for each major tick
    axis.Labels.Add(“Put the required date/time string here”);

    Imported from legacy forums. Posted by Simon (had 3545 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.