Jump to content
Software FX Community

How To Create Multiple Y axis using Javascript


kalyan_nani

Recommended Posts

Hi Frank,

I am creating multiple secondary Y axis using below code(c#). How can i achieve the same using Javascript.

AxisY AddlAxisY = new AxisY();

AddlAxisY.Visible = true;

AddlAxisY.TextColor = Chart1.Series.Color;

AddlAxisY.Position =

AxisPosition.Far;AddlAxisY.ForceZero = false;

Chart1.AxesY.Add(AddlAxisY);

Chart1.Series.AxisY = AddlAxisY;

Is there any dcoumentation avilable on "Chartfx VS Javascript".

Regards,

Kalyan

 

Link to comment
Share on other sites

Normally this kind of coding is done in the server. You can do it in the client but you must be aware of the particulars about writing JavScript code against a .NET control. There is not a lot of documentation on this, in particular I can tell you the indexers are special. For example:

Chart1.Series

Will be written as

Chart1.Series.Item(i)

Enumerations are particularly tricky as it is the creation of new objects (e.g. new AxisY) as the classes don't exist in JavaScript but inside the .NET control.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...