Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8918909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:52:11+00:00 2026-06-15T05:52:11+00:00

currently I’m trying to make a chart with WPF chart toolkit, the requirement is

  • 0

currently I’m trying to make a chart with WPF chart toolkit,
the requirement is that Y-axis should show as the image below:
Y-axis

which describes
*0~84 is Level D
*85~99 is Level B
…

I’m not sure whether chart toolkit can make this type of Y-axis scale.
I’ll try to put TextBox controls directly into the canvas for “Level *” label if above is not supported by the chart toolkit, still I have problem how can I show only 85, 100, 115 as scale of Y axis.

Any help would be appreciated. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:52:14+00:00Added an answer on June 15, 2026 at 5:52 am

    You can try to use a Converter for the axis label of your chart. Something like this:
    XAML

    <chartingToolkit:Chart Name="chart1"  >
     <chartingToolkit:Chart.Resources>
      <HideConverter x:Key="HideConverter1" />
     </chartingToolkit:Chart.Resources>
     <chartingToolkit:Chart.Axes>
      <chartingToolkit:LinearAxis Orientation="Y" ShowGridLines="False"  Interval="5" Minimum="0" Maximum="150" >
       <chartingToolkit:LinearAxis.AxisLabelStyle>
        <Style TargetType="chartingToolkit:AxisLabel">
         <Setter Property="Template">
          <Setter.Value>
           <ControlTemplate TargetType="chartingToolkit:AxisLabel">
            <TextBlock DataContext="{TemplateBinding FormattedContent}" Text="{Binding Converter={StaticResource HideConverter1}}" />
           </ControlTemplate>
          </Setter.Value>
         </Setter>
        </Style>
       </chartingToolkit:LinearAxis.AxisLabelStyle>
      </chartingToolkit:LinearAxis>
     </chartingToolkit:Chart.Axes>
    </chartingToolkit:Chart>
    

    and in your codebehind the converter is

    public class HideConverter : IValueConverter
    {
    
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            // value is the current tick on the Y axis
            int x = int.Parse(value.ToString());
            switch (x)
            {
                case 85:
                case 100:
                case 115:
                    return value;
                case 40: // I set 40 to be in the middle between 0 and 85
                    return "Level D";
                case 90:
                    return "Level C";
                case 110:
                    return "Level B";
                case 130:
                    return "Level A";
                default:
                    return null;;
            }
            return null;
        }
    
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
    

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I am trying to make my app available for iOS4, to increase the
Currently, I am writing a MiddleWare application that synchronizes information between and accounting application
Currently I have 2 ways of displaying images in a cell, which way will
Currently working with converting SQLException error messages into messages that are more useful for
Currently I am trying to use a bunch of custom perl modules, test.pm as
Currently, my MVC 3 app has a dependency on a static class that is
Currently, Enum.Parse supports only the comma as the value separator, so that MemberOne,MemberThree will
Currently I have a web service, which loads up any plugins located within its
Currently, I am modifying a css document to make a website compatible in IE
Currently I'm doing some unit tests which are executed from bash. Unit tests are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.