Jump to content
Software FX Community

Data from Dataset


User (Legacy)

Recommended Posts

Hello,

i have following Tabel as DataTable:

The following chart is generated from the previous table data:

My Problem now is, that i want to show the Series in the XLabel and not the

Product.

As in the following chart:

So how can i do it without changing the Datatable ??? It will be a great

help when you send me a sample !!!

Ok thanx and bye

Tarik

Link to comment
Share on other sites

Turn on the DataStyle.Transpose flag using the DataStyle property of the

chart.DataSourceSettings object.

--

Regards,

JC

Software FX Support

"Tarik" <t.ersoez@indec.de> wrote in message

news:4bpPWd8iCHA.944@webserver1.softwarefx.com...

> Hello,

>

> i have following Tabel as DataTable:

>

>

> The following chart is generated from the previous table data:

>

>

>

> My Problem now is, that i want to show the Series in the XLabel and not

the

> Product.

>

> As in the following chart:

>

>

>

>

>

> So how can i do it without changing the Datatable ??? It will be a great

> help when you send me a sample !!!

>

> Ok thanx and bye

>

> Tarik

>

>

>

>

>

>

Attachments.zip

Link to comment
Share on other sites

Thank you, i tested but no function !!!

Perhaps you can help me better when you see the source-code:

Dim dtp As New DataTableProvider(oDataSet.Tables(0))

Dim cfxCT As CrosstabDataProvider

cfxCT = New CrosstabDataProvider()

cfxCT.DataType(0) = SoftwareFX.ChartFX.Data.CrosstabDataType.ColumnHeading

cfxCT.DataType(1) = SoftwareFX.ChartFX.Data.CrosstabDataType.RowHeading

cfxCT.DataType(2) = SoftwareFX.ChartFX.Data.CrosstabDataType.Value

cfxCT.DataSource = dtp

MyChart.DataSourceSettings.DataSource = cfxCT

MyChart.DataBind()

How can i do without Crosstab and where i must use the Transpose ???

"Software FX Support" <support@softwarefx.com> schrieb im Newsbeitrag

news:ZZM57I$iCHA.1312@webserver1.softwarefx.com...

> Turn on the DataStyle.Transpose flag using the DataStyle property of the

> chart.DataSourceSettings object.

>

> --

> Regards,

>

> JC

> Software FX Support

> "Tarik" <t.ersoez@indec.de> wrote in message

> news:4bpPWd8iCHA.944@webserver1.softwarefx.com...

> > Hello,

> >

> > i have following Tabel as DataTable:

> >

> >

> > The following chart is generated from the previous table data:

> >

> >

> >

> > My Problem now is, that i want to show the Series in the XLabel and not

> the

> > Product.

> >

> > As in the following chart:

> >

> >

> >

> >

> >

> > So how can i do it without changing the Datatable ??? It will be a great

> > help when you send me a sample !!!

> >

> > Ok thanx and bye

> >

> > Tarik

> >

> >

> >

> >

> >

> >

>

>

Link to comment
Share on other sites

I am sorry I did not notice you wanted to use the Crosstab provider.

Please make sure you order your resource set using the field(s) that you are

using as RowHeading. Also I would recommend you select the fields explicitly

instead of using Select * so that you know for sure the order of the fields

returned by your database.

--

Regards,

JC

Software FX Support

"Tarik" <t.ersoez@indec.de> wrote in message

news:8jn1qetjCHA.1312@webserver1.softwarefx.com...

> Thank you, i tested but no function !!!

>

> Perhaps you can help me better when you see the source-code:

>

> Dim dtp As New DataTableProvider(oDataSet.Tables(0))

>

> Dim cfxCT As CrosstabDataProvider

>

> cfxCT = New CrosstabDataProvider()

>

> cfxCT.DataType(0) = SoftwareFX.ChartFX.Data.CrosstabDataType.ColumnHeading

>

> cfxCT.DataType(1) = SoftwareFX.ChartFX.Data.CrosstabDataType.RowHeading

>

> cfxCT.DataType(2) = SoftwareFX.ChartFX.Data.CrosstabDataType.Value

>

> cfxCT.DataSource = dtp

>

> MyChart.DataSourceSettings.DataSource = cfxCT

>

> MyChart.DataBind()

>

>

>

> How can i do without Crosstab and where i must use the Transpose ???

>

>

> "Software FX Support" <support@softwarefx.com> schrieb im Newsbeitrag

> news:ZZM57I$iCHA.1312@webserver1.softwarefx.com...

> > Turn on the DataStyle.Transpose flag using the DataStyle property of the

> > chart.DataSourceSettings object.

> >

> > --

> > Regards,

> >

> > JC

> > Software FX Support

> > "Tarik" <t.ersoez@indec.de> wrote in message

> > news:4bpPWd8iCHA.944@webserver1.softwarefx.com...

> > > Hello,

> > >

> > > i have following Tabel as DataTable:

> > >

> > >

> > > The following chart is generated from the previous table data:

> > >

> > >

> > >

> > > My Problem now is, that i want to show the Series in the XLabel and

not

> > the

> > > Product.

> > >

> > > As in the following chart:

> > >

> > >

> > >

> > >

> > >

> > > So how can i do it without changing the Datatable ??? It will be a

great

> > > help when you send me a sample !!!

> > >

> > > Ok thanx and bye

> > >

> > > Tarik

> > >

> > >

> > >

> > >

> > >

> > >

> >

> >

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...