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

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.

×
×
  • Create New...