This is a migrated thread and some comments may be shown as answers.

[Solved] formatting bug, chrome bug & firefox/IE bug!...

4 Answers 65 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mahmoud
Top achievements
Rank 1
mahmoud asked on 26 Sep 2011, 03:48 PM
Dear Teleriks,
I have some bugs with chart (2011Q2,SP1)
At first my code is : (NOTE : I use telerik in RTL fromat)

<table id="chart" style="width100%;">
    <tr>
        <td align="center">
            @(Html.Telerik().Chart(Model)
.Name("priceTrendChart")
.Title(title => title.Text("خلاصه فروش").Font("Tahoma"))
.ChartArea(area => area.Border(1, "black"ChartDashType.Solid))
                .Legend(legend => legend.Font("Tahoma"))
    .SeriesDefaults(series =>
    {
        series.Column().Labels(labels=>labels.Visible(true).Format("{0:#,#}"));
    })
.Series(series =>
{
    series.Column(o => o.TotalAmount).Name("Total Amount").Labels(labels => labels.Font("Tahoma"));
    series.Column(o => o.SaleIAmount).Name("Sale Amount").Labels(labels => labels.Font("Tahoma"));
    series.Column(o => o.AdjustmentAmount).Name("Adj Amount").Labels(labels => labels.Font("Tahoma"));
    series.Column(o => o.ProformaCount).Name("Proforma Amount").Labels(labels => labels.Font("Tahoma"));
})
        .ValueAxis(axis => axis.Numeric().Labels(labels => labels.Visible(true).Font("Tahoma").Format("{0:#,#}")))
            .CategoryAxis(axis => axis.Categories(s => s.Month).Labels(l => l.Font("Tahoma")))
                   .HtmlAttributes(new { style = "width: 600px;" })
       )
        </td>
    </tr>
</table>


The bugs are :
1- formatting not works correctly! for example it returns : 2,105,000,0 instead of 21,050,000
2- in IE 9 and Firefox 6.0.2 it make a long horizontal scrollbar at the bottom of the page.
3- in chrome 14 , all the chart labels shift to left (about 20px) 

4 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 27 Sep 2011, 01:01 PM
Hi Mahmoud,

Thank you for the feedback.

The workaround for the issue is to set your custom format to "{0:#,###}"

Greetings,
Hristo Germanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
mahmoud
Top achievements
Rank 1
answered on 28 Sep 2011, 01:47 PM
Really thanks! It solved my first problem, but what about the second and 3rd ones?
0
Hristo Germanov
Telerik team
answered on 29 Sep 2011, 08:23 AM
Hello Mahmoud,

Unfortunately I am not able to reproduce the second and third issue locally. Could you please send us a simple test project which reproduces the depicted issue? Thus I will be able to observe the problem and advice you further.

All the best,
Hristo Germanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
mahmoud
Top achievements
Rank 1
answered on 02 Nov 2011, 04:45 PM
to reproduce the second bug in chrome, simply set the body class to "t-rtl" .
I solved the problem by setting the container element's style to direction:ltr

Tags
Chart
Asked by
mahmoud
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
mahmoud
Top achievements
Rank 1
Share this question
or