Aug 13, 2012, 2:08 PM
[CLOSED] Chart Line
Hi,
I'm with a problem in my chart, I'm not getting put the records the way like, not sure if it is possible, follows the records.
Records:
Chart Code:
I would like have two columns in CategoryAxis(30/06/2012, 31/07/2012) and in my right legend, I would like(With maturity 30 days, With maturity 60 days, With maturity 90 days, With maturity 180 days) refers to column Description(for each item would be a different line on the chart).
Thanks.
I'm with a problem in my chart, I'm not getting put the records the way like, not sure if it is possible, follows the records.
Records:
Date | Description | Percentage |
30/06/2012 | With maturity 30 days | 16.42 |
30/06/2012 | With maturity 60 days | 28.28 |
30/06/2012 | With maturity 90 days | 21.8 |
30/06/2012 | With maturity 180 days | 33.5 |
31/07/2012 | With maturity 30 days | 27.11 |
31/07/2012 | With maturity 60 days | 20.95 |
31/07/2012 | With maturity 90 days | 18.62 |
31/07/2012 | With maturity 180 days | 33.32 |
Chart Code:
<ext:Chart ID="chtGrafico" runat="server" Animate="true" Width="800"
Height="500" Frame="true" Hidden="true" InsetPadding="30">
<LegendConfig Position="Right" />
<Store>
<ext:Store ID="StoreGrafico" runat="server">
<Model>
<ext:Model ID="Model5" runat="server">
<Fields>
<ext:ModelField Name="Date" />
<ext:ModelField Name="Description" />
<ext:ModelField Name="Percentage"/>
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Axes>
<ext:NumericAxis Fields="Percentage" Title="Porcentagem" Minimum="0" Maximum="100" MajorTickSteps="9">
<GridConfig>
<Odd Opacity="1" Fill="#ddd" Stroke="#bbb" StrokeWidth="0.5" />
</GridConfig>
</ext:NumericAxis>
<ext:CategoryAxis Fields="Date" Position="Bottom" Title="Meses" />
</Axes>
<Series>
<ext:LineSeries Axis="Left" XField="Percentage" YField="Description">
<HighlightConfig Size="7" Radius="7" />
<MarkerConfig Type="Cross" Size="4" Radius="4" StrokeWidth="0" />
<Tips runat="server" TrackMouse="true" Width="140" Height="35">
<Renderer Handler="this.setTitle(storeItem.get('Description') + '<br />' + storeItem.get('Percentage'));"></Renderer>
</Tips>
</ext:LineSeries>
</Series>
</ext:Chart>
Result:I would like have two columns in CategoryAxis(30/06/2012, 31/07/2012) and in my right legend, I would like(With maturity 30 days, With maturity 60 days, With maturity 90 days, With maturity 180 days) refers to column Description(for each item would be a different line on the chart).
Thanks.
Last edited by Daniil; Aug 16, 2012 at 5:19 PM.
Reason: [CLOSED]