[CLOSED] Ext. Net chart - Issues

  1. #1

    [CLOSED] Ext. Net chart - Issues

    I have the following issues

    1. When i click on legends - it is blinking in IE.
    2. I want axis should start from zero always. Currently it is starting is based on data....

    <ext:Chart ID="ChartYtd" runat="server" StyleSpec="background:#fff;" Shadow="true" StandardTheme="Category1" Animate="true" Width="920" Height="400">
        <LegendConfig Position="Right" />
        <Store>
            <ext:Store ID="storeYtd" runat="server">
                <Model>
                    <ext:Model ID="Model41" runat="server">
                        <Fields>
                            <ext:ModelField Name="MonthNYear" Type="String" />
                            <ext:ModelField Name="Planned">
                                <Convert Handler="if (value == null) { value = undefined; }; return value;" />
                            </ext:ModelField>
                            <ext:ModelField Name="Actuals">
                                <Convert Handler="if (value == null) { value = undefined; }; return value;" />
                            </ext:ModelField>
                            <ext:ModelField Name="Month" Type="String" />
                            <ext:ModelField Name="Year" Type="String" />
                        </Fields>
                    </ext:Model>
                </Model>
            </ext:Store>
        </Store>
        <Axes>
            <ext:NumericAxis Position="Left" Fields="Planned,Actuals" Title="k $" Grid="true">
                <LabelTitle Font="normal 11px Arial;" Fill="Black" />
                <Label Font="normal 11px Arial;" Fill="Black" />
                <GridConfig>
                    <Even Stroke="#000000" StrokeWidth="0.5" />
                    <Odd Stroke="#000000" StrokeWidth="0.5" />
                </GridConfig>
            </ext:NumericAxis>
            <ext:CategoryAxis Position="Bottom" Fields="MonthNYear" Title="Month Year">
                <LabelTitle Font="normal 11px Arial;" Fill="Black" />
                <Label Font="normal 11px Arial;" Fill="Black" />
            </ext:CategoryAxis>
        </Axes>
        <LegendConfig Position="Bottom" BoxStroke="false" BoxStrokeWidth="0" />
        <Series>
            <ext:LineSeries Axis="Left" XField="MonthNYear" YField="Planned" Title="Planned" Smooth="8" ShowMarkers="true">
                <Tips ID="Tips7" runat="server" TrackMouse="true" Width="300" Anchor="left" Height="20" Cls="chartToolTip">
                    <%-- <Renderer Handler="this.update(String(item.value[1]))" />--%>
                    <Renderer Handler="this.setTitle('Planned: ' + Ext.util.Format.number(item.value[1],'000.00') + ' (Click here to see drill down report)');" />
                </Tips>
                <MarkerConfig Fill="#FF0000" Stroke="#FF0000" Type="Circle" Radius="2" StrokeWidth="2" Cursor="pointer" />
                <Style Stroke="#FF0000" StrokeWidth="2" />
                <Listeners>
                    <ItemMouseUp Handler="Ext.net.DirectMethods.BindYtdChartDrillDownData(item.storeItem.raw.Month, item.storeItem.raw.Year);" />
                    <AfterRender Handler="this.markerGroup.each(function(m) { m.addCls('showPointerCursor'); });" />
                </Listeners>
            </ext:LineSeries>
            <ext:LineSeries Axis="Left" XField="MonthNYear" YField="Actuals" Title="Actuals" Smooth="3">
                <Tips ID="Tips1" runat="server" TrackMouse="true" Width="300" Anchor="left" Height="20" Cls="chartToolTip">
                    <%-- <Renderer Handler="this.update(String(item.value[1]))" />--%>
                    <Renderer Handler="this.setTitle('Actuals: ' + Ext.util.Format.number(item.value[1],'000.00') + ' (Click here to see drill down report)');" />
                </Tips>
                <MarkerConfig Fill="000081" Stroke="000081" Type="Circle" Radius="2" StrokeWidth="1" Cursor="pointer" />
                <Style Stroke="#000081" StrokeWidth="2.5" />
                <Listeners>
                    <ItemMouseUp Handler="Ext.net.DirectMethods.BindYtdChartDrillDownData(item.storeItem.raw.Month, item.storeItem.raw.Year);" />
                    <AfterRender Handler="this.markerGroup.each(function(m) { m.addCls('showPointerCursor'); });" />
                </Listeners>
            </ext:LineSeries>
        </Series>
    </ext:Chart>
    Last edited by Daniil; Sep 08, 2015 at 3:06 PM. Reason: [CLOSED]
  2. #2
    Hello @velusoft!

    I couldn't reproduce the issue reported on your question item 1. Maybe because there's a lot missing in order to reproduce your graph locally. Without the data it shown a numeric y-axis from 0 to 1.1 in intervals of 0.1. I could click the numeric axis' legend and nothing happened.

    When I clicked the date legend on the bottom of the screen (Planned, Actuals), they worked as expected: on click, the display is toggled and it is grayed out. No blinking whatsoever.

    As for your question item 2, use Minimum="0" and maybe AdjustMinimumByMajorUnit="false" on your <ext:NumeriAxis /> definition.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 2
    Last Post: Jul 23, 2014, 1:02 PM
  2. Line Chart issues in IE
    By Pradip in forum 2.x Help
    Replies: 9
    Last Post: Mar 21, 2014, 5:53 AM
  3. Replies: 1
    Last Post: Nov 07, 2013, 8:14 PM
  4. Replies: 2
    Last Post: Jun 20, 2013, 10:32 AM
  5. [CLOSED] Gauge chart issues
    By advBackOffice in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: May 02, 2013, 4:23 PM

Posting Permissions