Jump to content
Software FX Community

Stripes, axis sections - 2nd color not showing


User (Legacy)

Recommended Posts

Hi,

I have a simple chart as per the code below. I use axis sections to define two coloured horizontal stripes across the chart. I use these to show whether a point falls within one standard deviation of the mean. This works fine when I deploy it to the test machine running development version of chart FX but when I deploy it to the live system with the production version of ChartFX - the axis section doesn't show. If I use stripes - exactly the same thing happens. Is this a known bug? Is there a way around this?

Thanks,

Dan.

/* Get data */

DataSet chartDS = DiagnosticsDB.GetDiagnosticChartData(modelIDs, periodIDs, bd);

/* Add tool tips */

Chart1.ImgMap = SoftwareFX.ChartFX.ImgMap.TitleTip;

Chart1.TipMask = "%L";

/* Tell chart fx how to handle each column in the dataset */

Chart1.DataSourceSettings.DataType[0] = DataType.NotUsed;

Chart1.DataSourceSettings.DataType[1] = DataType.NotUsed;

Chart1.DataSourceSettings.DataType[2] = DataType.Value;

/* we don't need to see any values on the x-axis */

Chart1.AxisX.Visible = false;

Chart1.MarkerShape = MarkerShape.Rect;

/* Assign the data source */

Chart1.DataSource = chartDS.Tables[0];

< ... do some stuff to colour in points based on their position ... >

// Obtain an AxisSection Object for the X and Y Axes

SoftwareFX.ChartFX.Internet.Server.AxisSection as1 = Chart1.AxisY.Sections[0];

SoftwareFX.ChartFX.Internet.Server.AxisSection as2 = Chart1.AxisY.Sections[1];

//Setup the first axis section

as1.From = (double) mean;

as1.To = (double) mean + (double) stddev;

as1.BackColor = Color.FromArgb(75,0,255,0);|

as1.Gridlines = true;

//Setup the 2nd axis section

as2.From = (double) mean;

as2.To = (double) mean - (double) stddev;

as2.BackColor = Color.FromArgb(75,255,0,0);

Link to comment
Share on other sites

I should clarify a bit - On the production version - only the first axis section shows (or the first stripe depending on what I'm using). The second one is not visible. Do you need any more detail/explanations? Thanks, Dan.

"Dan Walls" <wallsy@hotmail.com> wrote in message news:86sTa%23kPFHA.3952@webserver3.softwarefx.com...

Hi,

I have a simple chart as per the code below. I use axis sections to define two coloured horizontal stripes across the chart. I use these to show whether a point falls within one standard deviation of the mean. This works fine when I deploy it to the test machine running development version of chart FX but when I deploy it to the live system with the production version of ChartFX - the axis section doesn't show. If I use stripes - exactly the same thing happens. Is this a known bug? Is there a way around this?

Thanks,

Dan.

/* Get data */

DataSet chartDS = DiagnosticsDB.GetDiagnosticChartData(modelIDs, periodIDs, bd);

/* Add tool tips */

Chart1.ImgMap = SoftwareFX.ChartFX.ImgMap.TitleTip;

Chart1.TipMask = "%L";

/* Tell chart fx how to handle each column in the dataset */

Chart1.DataSourceSettings.DataType[0] = DataType.NotUsed;

Chart1.DataSourceSettings.DataType[1] = DataType.NotUsed;

Chart1.DataSourceSettings.DataType[2] = DataType.Value;

/* we don't need to see any values on the x-axis */

Chart1.AxisX.Visible = false;

Chart1.MarkerShape = MarkerShape.Rect;

/* Assign the data source */

Chart1.DataSource = chartDS.Tables[0];

< ... do some stuff to colour in points based on their position ... >

// Obtain an AxisSection Object for the X and Y Axes

SoftwareFX.ChartFX.Internet.Server.AxisSection as1 = Chart1.AxisY.Sections[0];

SoftwareFX.ChartFX.Internet.Server.AxisSection as2 = Chart1.AxisY.Sections[1];

//Setup the first axis section

as1.From = (double) mean;

as1.To = (double) mean + (double) stddev;

as1.BackColor = Color.FromArgb(75,0,255,0);|

as1.Gridlines = true;

//Setup the 2nd axis section

as2.From = (double) mean;

as2.To = (double) mean - (double) stddev;

as2.BackColor = Color.FromArgb(75,255,0,0);

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...