This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I'm creating a stacked bar chart, and I want to hide the words "X Axis" and "Y Axis" from the respective axis. How can I do this? Is there a single property to toggle the show/hide of this words? |
|
|
Hello To do this in xaml, you need to set the XAxis and YAxis properties of the chart to be instances of the ChartAxis class. This allows you to change various properties on each axis. One of the ChartAxis properties is the TitleVisibility which will solve your problem if you set it to Collapsed. So your xaml could look something like this:
<ch:Chart> <ch:StackedBarSeries /> <ch:Chart.XAxis> </ch:Chart> Or in code, you could use the Chart.XAxis and YAxis properties to access the default axis and set their TitleVisibility property. Regards |
|
|
Hi Jason, Thanks for your quick response. I tried this but Visual Studio prompted that ChartAxis doesn't contain TitleVisibility property. Is it a newly added property? Currently I am using version 1.0.4.16196. Thanks/Allen |
|
|
Hello Allen Yes this is a newly added property based on a customer request. You will need to download the latest nightly build to get it. Doing so will also help solve your other question about plotting a single point of data in a stacked bar chart. Regards |
|
|
Hi Jason For the axis issue, it works with the latest nightly build. Thanks/Allen |
|