Jump to content
Software FX Community

How do I create a secondary Y Axis when using CrosstabDataProvider?


User (Legacy)

Recommended Posts

Current synext.  I have another CrosstabDataProvider and data set that I

want to add on a curency axis.

//Cross Tab Junk:

DataTableProvider dt3 = new DataTableProvider(ds.Tables[0]);

CrosstabDataProvider cfxCT3 = new CrosstabDataProvider();

cfxCT3.DataType[0] = SoftwareFX.ChartFX.Data.CrosstabDataType.ColumnHeading;

cfxCT3.DataType[1] = SoftwareFX.ChartFX.Data.CrosstabDataType.RowHeading;

cfxCT3.DataType[2] = SoftwareFX.ChartFX.Data.CrosstabDataType.Value;

cfxCT3.DataType[3] = SoftwareFX.ChartFX.Data.CrosstabDataType.NotUsed;

cfxCT3.DataSource = dt3;

equityPerformanceGraph.AxisY.LabelsFormat.Format =

SoftwareFX.ChartFX.AxisFormat.Percentage;

equityPerformanceGraph.DataSourceSettings.DataSource = cfxCT4;

FlashWriter fw = new FlashWriter();

equityPerformanceGraph.OutputWriter = fw;

Link to comment
Share on other sites

All you have to do is to assign one or more series to the secondary Y-Axis,

such as in:

SoftwareFX.ChartFX.Internet.Server.SeriesAttributes series0 =

Chart1.Series[0];

series0.YAxis = SoftwareFX.ChartFX.YAxis.Secondary;

Note that the Crosstab provider will create a different series for each

unique value in the column defined as ColumnHeading.

---

IG

Software FX

"Curious George" <mu330__@hotmail.nospam> wrote in message

news:oN2YVtjdDHA.2044@WEBSERVER1...

> Current synext. I have another CrosstabDataProvider and data set that I

> want to add on a curency axis.

>

>

>

> //Cross Tab Junk:

>

> DataTableProvider dt3 = new DataTableProvider(ds.Tables[0]);

>

> CrosstabDataProvider cfxCT3 = new CrosstabDataProvider();

>

>

>

> cfxCT3.DataType[0] =

SoftwareFX.ChartFX.Data.CrosstabDataType.ColumnHeading;

>

> cfxCT3.DataType[1] = SoftwareFX.ChartFX.Data.CrosstabDataType.RowHeading;

>

> cfxCT3.DataType[2] = SoftwareFX.ChartFX.Data.CrosstabDataType.Value;

>

> cfxCT3.DataType[3] = SoftwareFX.ChartFX.Data.CrosstabDataType.NotUsed;

>

> cfxCT3.DataSource = dt3;

>

>

>

> equityPerformanceGraph.AxisY.LabelsFormat.Format =

> SoftwareFX.ChartFX.AxisFormat.Percentage;

>

>

>

> equityPerformanceGraph.DataSourceSettings.DataSource = cfxCT4;

>

>

>

> FlashWriter fw = new FlashWriter();

>

> equityPerformanceGraph.OutputWriter = fw;

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...