[CLOSED] Dotted line renders as solid line in line chart image

  1. #1

    [CLOSED] Dotted line renders as solid line in line chart image

    Hi Ext Team,

    I am creating line chart with dotted and solid lines, it works great. But the issue is when I save the chart as image dotted line renders as solid line in the image.

    Can you please tell me what I am doing wrong here?

    Please see the following example.

    <%@ Page Language="C#" %>
      
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
     
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                Store s = this.Chart1.GetStore();
                s.DataSource = new object[]
                {
                    new 
                    {
                        x = 0,
                        y = 0  
                    },
                    new 
                    {
                        x = 50,
                        y = 50  
                    },
                    new 
                    {
                        x = 100,
                        y = 100   
                    }
                };
            }
        }
    </script>
     
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
     
        <script>
            var save = function () {
                App.Chart1.save({
                    type: "image/png"
                });
            };
        </script>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
             
            <ext:Button runat="server" Text="Save" Handler="save" />
     
            <ext:Chart
                ID="Chart1"
                runat="server"
                Width="400"
                Height="400">
                <Store>
                    <ext:Store runat="server">
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="x" />
                                    <ext:ModelField Name="y" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <Axes>
                    <ext:NumericAxis Title="X" Fields="x" Position="Bottom" />
                    <ext:NumericAxis Title="Y" Fields="y" Position="Left" />
                </Axes>
                <Series>
                    <ext:LineSeries Titles="Chart" XField="x" YField="y">
                        <Style StrokeDashArray="10" StrokeWidth="5" />
                    </ext:LineSeries>
                </Series>
            </ext:Chart>
        </form>
    </body>
    </html>
    Last edited by Daniil; Apr 01, 2014 at 5:29 PM. Reason: [CLOSED]
  2. #2
    Hi @PriceRightHTML5team,

    Thank you for the report. It is a known issue.
    http://forums.ext.net/showthread.php?29021

Similar Threads

  1. Replies: 7
    Last Post: Jun 19, 2014, 5:49 AM
  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: 3
    Last Post: Mar 13, 2014, 2:26 PM
  4. Replies: 2
    Last Post: Nov 07, 2013, 1:03 PM
  5. [CLOSED] Chart Line
    By pdcase in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Aug 14, 2012, 3:25 PM

Posting Permissions