two axis in a line chart (owc in vb.net)

B

BanjaraBoy

I am using owc10 in vb.net (aps.net)
I am trying to plot two y-axis (one on left and one on
right) in a line chart. How can I do that in vb.net?
And also I am unable to use the chart.constants property
in vb.net. Is their something different in vb.net to get
those constants.
 
T

Thao Moua [ms]

This code will add a second value axis based off of an
existing series' value axis and then place the new axis
on the right hand side.

----------------------------
oScaling = CS.Charts(0).seriescollection(0).scalings
(ChartDimensionsEnum.chDimValues)
set oAxis = CS.Charts(0).Axes(oScaling)
oAxis.position =
ChartAxisPositionEnum.chAxisPositionRight
----------------------------

To get value from the Constants object, you would do

x=CS.Constants.chDimValues
OR
x=<enum class name>.<enum> (ie
x=ChartAxisPositionEnum.chAxisPositionRight)

Thao Moua
OWC Webchart Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top