我正在使用SpagoBI JFree图表引擎,我在我的Y轴上显示了5个系列。它工作正常,但每个系列都显示不同的比例。我希望每个系列都有相同的比例,我可以拥有通过Spago BI在JFreeChart引擎中设置比例的自由度。 带着敬意 Sanjoy我的代码就像 {
<!-- div properties -->
<HIGHCHART width='80%' height='80%'>
<!-- chart object properties -->
<CHART zoomType='xy' />
<!-- title object properties -->
<TITLE text='Tenancy status For $P{Statename}'>
</TITLE>
<!-- subtitle object properties -->
<SUBTITLE text='ALL RELATED TO AREA'>
</SUBTITLE>
<X_AXIS alias='stateyear' />
<!-- yAxis object properties -->
<Y_AXIS_LIST>
<Y_AXIS alias='AREA' opposite='true'>
<LABELS>
<STYLE color='#89A54E' />
</LABELS>
<TITLE text='Total Area'>
<STYLE color='#89A54E' />
</TITLE>
</Y_AXIS>
<Y_AXIS alias='WHOLLY_OWN' gridLineWidth='0' >
<LABELS>
<STYLE color='#4572A7' />
</LABELS>
<TITLE text='WHOLLY OWN'>
<STYLE color='#4572A7' />
</TITLE>
</Y_AXIS>
<Y_AXIS alias='WHOLLY_LEASED' gridLineWidth='0' >
<LABELS>
<STYLE color='#AA4643' />
</LABELS>
<TITLE text='WHOLLY LEASED'>
<STYLE color='#AA4643' />
</TITLE>
</Y_AXIS>
<Y_AXIS alias='OTHERWISE_OPERATED' gridLineWidth='0' >
<LABELS>
<STYLE color='#a94373' />
</LABELS>
<TITLE text='OTHERWISE OPERATED'>
<STYLE color='#a94373' />
</TITLE>
</Y_AXIS>
<Y_AXIS alias='TOTAL_PARTLY_AREAS' gridLineWidth='0' >
<LABELS>
<STYLE color='#43a6a9' />
</LABELS>
<TITLE text='TOTAL PARTLY AREAS'>
<STYLE color='#43a6a9' />
</TITLE>
</Y_AXIS>
</Y_AXIS_LIST>
<!-- legend object properties -->
<LEGEND layout='horizontal'
align='left'
verticalAlign='top'
x='120'
y='80'
floating='true'
borderWidth='1'
backgroundColor='#FFFFFF'
shadow='true'/>
<SERIES_LIST allowPointSelect='true'>
<SERIES name='Total Area' color='#89A54E' type='column' yAxis='1' alias='AREA' />
<SERIES name='WHOLLY OWN' color='#4572A7' type='spline' alias='WHOLLY_OWN' yAxis='2'/>
<SERIES name='WHOLLY LEASED' color='#AA4643' type='spline' alias='WHOLLY_LEASED' yAxis='3' />
<SERIES name='OTHERWISE OPERATED' color='#a94373' type='spline' alias='OTHERWISE_OPERATED' yAxis='4' />
<SERIES name='TOTAL PARTLY AREAS' color='#43a6a9' type='spline' alias='TOTAL_PARTLY_AREAS' />
</SERIES_LIST>
</HIGHCHART>
}