Bug Report T282920
Visible to All Users

There is no capability to localize values shown in the Crosshair panel

created 10 years ago

Hi,

I have prepared a series chart in my project. I have issue for formatting value as german value. Please check attached screenshot, I have highlighted values with rectangle area(red).

In the grid I can display value as per germal format, but I did not find a way to display same format in the chart.
for eg.
-- In the Grid     :  61,06 in German(de-DE) its showing correct.
-- In the Chart  :   61.06 its not showing as per German culture, I want to display its value 61,06 not 61.06

For the series I have below code,

HTML
Series series = new Series(); series.Visible = true; series.Name = "Männlich"; series.ArgumentDataMember = "LISTNAME"; series.ValueDataMembers[0] = "ALTERM"; series.Label.PointOptions.ValueNumericOptions.Format = NumericFormat.Number; //series.CrosshairLabelPattern = "{A}: {V}"; //series.CrosshairLabelPattern = string.Format("{0}", Convert.ToDecimal(e.Value).ToString("N", new System.Globalization.CultureInfo("de-DE"))); SideBySideBarSeriesView V = ((SideBySideBarSeriesView)series.View); V.Color = Color.Green; settings.Series.Add(series); series = new Series(); series.Visible = true; series.Name = "Weiblich"; series.ArgumentDataMember = "LISTNAME"; series.ValueDataMembers[0] = "ALTERW"; series.Label.PointOptions.ValueNumericOptions.Format = NumericFormat.Number; //series.CrosshairLabelPattern = "{A}: {V:P1}"; //series.CrosshairLabelPattern = "{V}"; V = ((SideBySideBarSeriesView)series.View); V.Color = Color.Magenta; settings.Series.Add(series);

Please check the screenshot, so you can understand my scenario and let me know how to show correct value in german culture.

--
Thanks,
Aslam Ansari

Comments (3)
DevExpress Support Team 10 years ago

    I have managed to reproduce this issue on my side and passed this ticket to our developers for further research.  We will update this thread once we have any news.

    AA AA
    Aslam Ansari (Gateway Technolabs) 10 years ago

      Hello John,
      Any update for the issue.?
      --
      Thanks,
      Aslam Ansari

      DevExpress Support Team 10 years ago

        Hi Aslam,

        As an immediate solution, it is possible to customize the Crosshair Panel content using the client-side CustomDrawCrosshair event. This should make it possible to apply a custom numeric format using JavaScript. We will continue working on this issue and will keep you informed of our progress.

        Answers approved by DevExpress Support

        created 9 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.