Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I swap the primary and secondary axis and how do I specify the chart type for the secondary axis?

0
Posted

How do I swap the primary and secondary axis and how do I specify the chart type for the secondary axis?

0

Get a handle to ISecondaryAxis and use setSwapAxis to swap the primary and secondary axis. To specify the chart type for the secondary axis, use the method setCombinationType ISecondaryChart secondaryChart = chart.gethSecondaryChart(); secondaryChart.setCombinationType(QbChart.COMBO_COL); // Sets the secondary chart to be a Column Chart secondaryChart.setSwapAxis(true); // Swaps the primary and secondary axis How do I change the font settings for the labels, titles, etc. ? Get a handle to the interface (for example, gethMainTitle() for the main title, IAxis.gethLabel() for the data top labels, IAxis.gethTitle() for the axis title etc.). Then if the methods of IText are inherited, you can call the methods setAngle, setColor and setFont OR you can get a handle to the IText interface and call the methods there. For example, if the data top labels for the x axis are shown in 90 degrees (vertically, bottom to top), color Red and font Times New Roman, size 12 and Bold, then use the following

0

Get a handle to ISecondaryAxis and use setSwapAxis to swap the primary and secondary axis. To specify the chart type for the secondary axis, use the method setCombinationType ISecondaryChart secondaryChart = chart.gethSecondaryChart(); secondaryChart.setCombinationType(QbChart.COMBO_COL); // Sets the secondary chart to be a Column Chart secondaryChart.setSwapAxis(true); // Swaps the primary and secondary axis How do I change the font settings for the labels, titles, etc. ? Get a handle to the interface (for example, gethMainTitle() for the main title, IAxis.gethLabel() for the data top labels, IAxis.gethTitle() for the axis title etc.). Then if the methods of IText are inherited, you can call the methods setAngle, setColor and setFont OR you can get a handle to the IText interface and call the methods there.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123