Apr 09, 2014, 7:52 AM
[CLOSED] "Sprite" texts are getting overlapped in Chart .
I have two different Sprite attribute given below
These two text are overlapping sometimes when text of first sprite is getting lengthier.What we can do so they should not overlap and should be side by side.
MinText = new Sprite { Type = SpriteType.Text, Text = String.Format("Min:{0} {1:" + GetPriceFormat(Data.Select(r => r.PriceAdjusted)) + "}/{2} {3}", minRecord.CountryDescription, minRecord.PriceAdjusted, transformUnits, uom), X = 110, Y = 35, ZIndex = 1000, Font = "10px Arial", Fill = "#000", SpriteID = "lblMinText" };
MaxText = new Sprite { Type = SpriteType.Text, Text = String.Format("Max:{0} {1:" + GetPriceFormat(Data.Select(r => r.PriceAdjusted)) + "}/{2} {3}", maxRecord.CountryDescription, maxRecord.PriceAdjusted, transformUnits, uom), X = 250, Y = 35, ZIndex = 1000, Font = "10px Arial", Fill = "#000", SpriteID = "lblMaxText" };
Chart drawChart = new Chart
{
ID = "ReportChart",
Animate = true,
Height = 600,
MinWidth = 300,
Width = 950,
MaxWidth = 1200,
Shadow = true,
Store = { this.CreateChartStore(mod) },
Axes = { this.ChartNumericAxis(), this.ChartCategoryAxis() },
Items = { MinText, MaxText}
};
These two text are overlapping sometimes when text of first sprite is getting lengthier.What we can do so they should not overlap and should be side by side.
Last edited by Daniil; Apr 15, 2014 at 11:20 PM.
Reason: [CLOSED]