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 6745471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:12:33+00:00 2026-05-26T12:12:33+00:00

I have a chart with ColumnSeries and I am trying to make the labels

  • 0

I have a chart with ColumnSeries and I am trying to make the labels on X axis display near the ticks like this:

Goal

By default, the ColumnSeries uses CategoryAxis axis which places labels in the middle of interval:

enter image description here

What I want is the X axis to work similar to LinearAxis. However I don’t see any way to make ColumnSeries use LinearAxis.

Also, I see no way how to render the labels to be placed near the ticks. I can go and modify the source code of CategoryAxis but it is not easy to me.

Another idea I had was to use a LinearAxis but doesn’t seem to work with ColumnSeries.

Any idea is much appreciated.

Thanks!

EDIT: The 2011, 2012 are just examples, they are not dates. What I am trying to do actually is display intervals on X axis. 2011 should actually start in origin. I will update the picture.

  • 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-05-26T12:12:34+00:00Added an answer on May 26, 2026 at 12:12 pm

    A ColumnSeries works correctly with a LinearAxis. Here is an example modified from Delay’s DataVisualizationDemos sample:

    enter image description here

    The XAML:

    <chartingToolkit:Chart Title="Stock Performance">
        <!-- Stock price and volume -->
        <chartingToolkit:ColumnSeries
            Title="ABCD"
            ItemsSource="{StaticResource SalesDataCollection}"
            IndependentValueBinding="{Binding EastStoreQuantity}"
            DependentValueBinding="{Binding WestStoreQuantity}"
            />
        <chartingToolkit:Chart.Axes>
            <!-- Axis for custom labels -->
            <chartingToolkit:LinearAxis
                Minimum="0"
                Maximum="10"
                Interval="1"
                Orientation="X">
            </chartingToolkit:LinearAxis>
        </chartingToolkit:Chart.Axes>
    </chartingToolkit:Chart>
    

    The code-behind:

    public class SalesDataCollection : Collection<SalesData>
    {
        public SalesDataCollection()
        {
            Add(new SalesData { Animal = "Dogs", WestStoreQuantity = 5, EastStoreQuantity = 7 });
            Add(new SalesData { Animal = "Cats", WestStoreQuantity = 5, EastStoreQuantity = 6 });
            Add(new SalesData { Animal = "Birds", WestStoreQuantity = 3, EastStoreQuantity = 8 });
            Add(new SalesData { Animal = "Fish", WestStoreQuantity = 6, EastStoreQuantity = 9 });
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have this chart that's a little special. Kind of like an XY
I have chart of winning positions. http://jsfiddle.net/DhcTV/4/ like this. As you can see the
I have a chart that looks like this: I want to remove the text
I have chart.png with data in it that I would like to put a
I have a chart (in bitmap format) that I'm trying to render to a
I have a chart with X-axis showing timeline and Y-axis showing value for an
I have line chart which has values : flock_age = X-axis = 16, 17,
I have tab control one tab contains DataGrid second ColumnSeries chart when i press
I have a chart I'm making in SSRS. My database is returning data like
I have a chart in SSRS that needs to have a flexible x-axis grid

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.