Profile Picture

Binding with Irregular X-Values

Posted By Tanya Heal 15 Years Ago
Author
Message
Milen Metodiev
Posted 15 Years Ago
View Quick Profile
Forum Member

Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)

Group: Nevron Team
Last Active: 14 Years Ago
Posts: 48, Visits: 1

Hi Tanya,

If you want the bars to be equally spaced, you don't have to set UseXValues to true. This way the actual X values will be 0, 1, 2, 3, but you can change the axis labels to show 10, 20, 30, 180. Unfortunately the axis labels cannot be assigned with data binding, so you have to use some code. As far as I remember you have to fill the labels as strings in the Labels collection of the axis and set the AutoLabels property to false.

Best Regards,
Milen



Tanya Heal
Posted 15 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: 15 Years Ago
Posts: 1, Visits: 1

Hi,

I'm using a Bar Series bound to a Data Table, with irregular X-Values, eg (10, 20, 30, 180).  When I use the following :

  chart.DataBindingManager.AddBinding(0, 0, "XValues", dataTable, "XColumnName")

I would like to see 4 bars, equally spaced, with X labels 10, 20, 30 & 180.  Instead when I use

  chart.Axis(StandardAxis.PrimaryX).ScaleMode = AxisScaleMode.Numeric

I see the 10, 20, 30 grouped together, then no value until the 180 value.  I am aware that I could use MajorTickModeNumeric.IrregularSteps which I would then need to manually define, but my preference is to just be able to bind to the values in the table.

Is this possible?

BTW, we're using a relatively old version of the Nevron Chart components (Q1 2006).

Thanks





Similar Topics


Reading This Topic