PDA

View Full Version : [CLOSED] Dotted line renders as solid line in line chart image



PriceRightHTML5team
Apr 01, 2014, 8:46 AM
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>

Daniil
Apr 01, 2014, 5:28 PM
Hi @PriceRightHTML5team,

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