Jump to content
Software FX Community

Binding X-axis and formatting


LianZA

Recommended Posts

Hi

I'm currently binding to a Datatable's rows property as follows:

(this works 100% for line and area charts)

               Dim series2 As New SeriesAttributes

               series2.ItemsSource = tbl.Rows

               series2.Gallery = Gallery.Bar

               series2.BindingPath = "CUM_BM_RET"

               series2.BindingPathX = "DATE"

               Chart1.Series.Add(series2)

X axis labels turns out fine but no data is shown, just an empty chart

If i dont set the "BindingPathX property on the series, but set the

BindingPath property on AxisX.Label :

          Chart1.AxisX.Labels.BindingPath = "DATE"

The chart and labels display correctly, except setting the format or

custom format has no effect on the labels

               Chart1.AxisX.Labels.Format = AxisFormat.Date

               Chart1.AxisX.Labels.CustomFormat = "yyyy/MM/dd"

The labels are still shown in full date time format ("2008/01/31 12:00:00 AM")

What is the correct way to this?

I'm using build 0.8.3091.27388

Link to comment
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.

×
×
  • Create New...