Multiple Chart in one Chartspace - Problem

Q

QMic

Hi all,

i've a problem in OWC10, to create multiple charts in one chartspace.

the problem is, that the categorie axes of each chart in the space are
the same... look at that picture:



bad-chart.jpg




how can i tell him, that it should look like this:

(manipulated picture ;) )



good-chart.jpg




here is the code of my 'testprogram', how i generate the categorie axis:

================================================

// xyData AND xyzData are string of that format: "3,4,5,2,3" and
"6,7,6,6,5"



...



for(int counter = 0; counter < 2; counter++)

{

...

chSpace.Charts[counter].SeriesCollection.Add(counter);

...



if(counter == 0)

{

chSpace.Charts[counter].SeriesCollection[counter].SetData(ChartDi-
mensionsEnum.chDimValues,
(int)ChartSpecialDataSourcesEnum.chDataLiteral, xyData);

chSpace.Charts[counter].SetData(ChartDimensionsEnum.chDimCategori-
es, (int)ChartSpecialDataSourcesEnum.chDataLiteral, "q,w,e,r,t");

}

else

{

chSpace.Charts[counter].SeriesCollection[counter].SetData(ChartDi-
mensionsEnum.chDimValues,
(int)ChartSpecialDataSourcesEnum.chDataLiteral, xyzData);

chSpace.Charts[counter].SetData(ChartDimensionsEnum.chDimCategori-
es, (int)ChartSpecialDataSourcesEnum.chDataLiteral,
"55,66,77,88,99");

}



...

}



================================================



thx 4 all answers!

regards QMic
 
T

Thao Moua [ms]

All charts within a Chartspace object will share the same
category. To solve your problem, set the scaling min and
max for each chart. For example for chart 1 set the
scaling max to 6 and for chart 2 set the scaling min to
6. This will force chart 1 to show category labels up to
the 6th position and force chart 2 to start showing
category labels starting at the 6th position.

Thao Moua
OWC Webchart Support
-----Original Message-----

Hi all,

i've a problem in OWC10, to create multiple charts in one chartspace.

the problem is, that the categorie axes of each chart in the space are
the same... look at that picture:



bad-chart.jpg




how can i tell him, that it should look like this:

(manipulated picture ;) )



good-chart.jpg




here is the code of my 'testprogram', how i generate the categorie axis:

================================================

// xyData AND xyzData are string of that format: "3,4,5,2,3" and
"6,7,6,6,5"



...



for(int counter = 0; counter < 2; counter++)

{

...

chSpace.Charts[counter].SeriesCollection.Add(counter);

...



if(counter == 0)

{

chSpace.Charts[counter].SeriesCollection [counter].SetData(ChartDi-
mensionsEnum.chDimValues,
(int)ChartSpecialDataSourcesEnum.chDataLiteral, xyData);

chSpace.Charts[counter].SetData
(ChartDimensionsEnum.chDimCategori-
es, (int)
ChartSpecialDataSourcesEnum.chDataLiteral, "q,w,e,r,t");
}

else

{

chSpace.Charts[counter].SeriesCollection [counter].SetData(ChartDi-
mensionsEnum.chDimValues,
(int)ChartSpecialDataSourcesEnum.chDataLiteral, xyzData);

chSpace.Charts[counter].SetData
(ChartDimensionsEnum.chDimCategori-
es, (int)ChartSpecialDataSourcesEnum.chDataLiteral,
"55,66,77,88,99");

}



...

}



================================================



thx 4 all answers!

regards QMic
 

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