Jump to content
Software FX Community

Problem With New Y Axis


kalyan_nani
 Share

Recommended Posts

Hi Frank,

I am creating a new Y axis on chart using the following code. 

int IDX = 1;AxisY AddlAxisY = new AxisY();AddlAxisY.Grids.Major.Visible = false;AddlAxisY.Grids.Minor.Visible = false;AddlAxisY.Visible = true;AddlAxisY.TextColor = myChart.Series[iDX].Color;AddlAxisY.Position = AxisPosition.Far;AddlAxisY.ForceZero = false;   myChart.AxesY.Add(AddlAxisY);myChart.Series[iDX].AxisY = AddlAxisY;

 myChart.Personalize.AutoSave = true; myChart.Personalize.Save();

when I am trying to access some other page and coming back to this page(chart) chart is loosing its newly created axis(using above code)

when I am changing the background color of the chart axis is intact , though I go to other page and coming back to this page(chart).

I want the same functionality without changing the background color of the chart.

please advise...

 

Link to comment
Share on other sites

I'm not sure if I understand correctly but If what you mean is that you are counting on the personalization to store the number of axes in the chart and how series are attached to them this is not part of the personalization settings.

In the personalization settings we store only what the user can change. So if the axis is already in the chart and personalized data is loaded that contains a different color for the axis labels but if the axis is not there this will be ignored.

In other words, the number of axes in the chart and the way the series are associated to them is not going to change as a result of loading personalization settings.

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.

 Share

×
×
  • Create New...