PDA

View Full Version : [CLOSED] "Sprite" texts are getting overlapped in Chart .



PriceRightHTML5team
Apr 09, 2014, 7:52 AM
I have two different Sprite attribute given below


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.

Daniil
Apr 09, 2014, 6:52 PM
Hi @PriceRightHTML5team,

There is no functionality to avoid overlapping automatically.

I think the only way to manage X and Y properties manually.