Solved How to remove decimal places from the value axis of a Modern Chart in Access?

JTrilloJ

Member
Local time
Today, 03:13
Joined
Feb 17, 2020
Messages
80
I've successfully created a Modern Chart in Access.
I've set the Minimum Value to -3,000,000 and the Maximum Value to 3,000,000.Value
Axis Range >> FixedValue
Axis Format >> StandardAnd >> here's where my problem is: I'm getting two decimal places.
I don't know how to remove them.
Is it possible?
Image attached
 

Attachments

  • Poblacion.png
    Poblacion.png
    21.7 KB · Views: 37
Hi Blue:
Yes, I do have that configuration, but that's not what I want to change.
According to the image I attached, on the X-axis, where some quantities are displayed, that's where I want the quantity to be shown without the two decimal places, but I don't know how to do it.
Thanks
 
Do you know how to do it on an excel chart?
 
Okay: It's not a big deal, but I still can't figure it out.
It's a "Modern Chart" in Access, and I don't see it in the Formatting Items.
I don't see it in the properties either.
It might not be available.
I just saw your message, Gasman. As I mentioned, it's not Excel.
Thanks again.
 

Attachments

  • Formato.png
    Formato.png
    15.3 KB · Views: 19
No, I know it is not :( , but I thought the method would be the same or similar?
 
Thanks Gasman:
There's a substantial difference between Excel charts and Access's "Modern Charts."
Excel offers many more options.
Regards
 
Really? I cannot test as I do not have them, but a quick Google appears the same to me?

Wouldn't hurt to try?

format axis in access modern chart

However that shows that I do have them in 2019. :unsure:
I can create a chart with some data, and change the format in the primary axis and see it change, but nothing happens on the secondary axis?
1763663793945.png


Perhaps Phillip will chime in as he has this video on YouTube.
I cannot remember his username here.
Edit: I *think* it is @sonic8
 
Last edited:
What is the format of the data to that chart?
Look at that video I linked to. He points out issues with decimal and thousands characters. His format is the same as yours.
 
Last edited:
Hi again Gasman:
Looking at the chart you posted, it seems to me that the values (in this case, the vertical axis) have two decimal places.
Regarding your subsequent question, the data format in my population chart (which in my case is the horizontal axis) uses values from 0 to 3,000,000.
To create the pyramid shape, I had to use negative values for men and positive values for women.
Blue: I also looked at the link you sent me, but it's for Excel.
As I mentioned to Gasman, there are significant differences between the options in Excel and Access's "Modern Charts" feature.
Best regards to you both.
 
They do, but I can get rid of them no problem. What I could not do was get the secondary axis to respect my format selections like the primary axis does.
 
The previous links in post #9 were not referring to Access modern charts

It can be done either from the property sheet or in code
You used a Primary Values Axis Format = Standard which gives 2 d.p.
From the property sheet, change the Primary Values Axis Format property from Fixed to Standard Number
That will give integer values
Here's a quick example imitating what you have in post #1



1763669953767.png


You may find my 3-part series of articles on modern charts useful starting with:

The third article discusses how to use VBA code to set modern chart properties
 
Just one clarification: Are you actually working with Access's "Modern Charts" or with "Classic" charts?.
The latter also offers more options.
Best regards.
 

Attachments

  • ClasicModern.png
    ClasicModern.png
    16.6 KB · Views: 15
Hi Colin:
I think I also mentioned that in addition to removing the decimal places, I wanted it to show the thousands separator format.
Example: 2,000,000 or -1,500,000
Thanks for your help
 
If post #16 was aimed at me, I'm referring to modern charts as the links make clear

You didn't explicitly state that you wanted to show the thousands separator format.
To do so would mean using Fixed or Standard formats both of which will result in 2 d.p. being shown

You can't have comma separators without also having decimal places
 
Note: Commas are visible in the thousands separator of my previous post.Logically, in my case they should be periods.
 
As stated you can only have a separator character if you also have 2 d.p.
 
Colin: Post #16 wasn't for you.
I've seen your articles a while ago and downloaded the examples, which have served as a guide for me on several occasions.
As I mentioned before, this isn't very important.
It's just to make the reading more "intuitive."
In short, I was looking for: Decimals >> NO, thousands separator >> YES.
Since that doesn't seem to be possible, we'll leave it as is.
Thanks.
 
I have always preferred to do charting in Excel because it has more variety and richer functionality. Excel gets a lot of love, Access doesn't 🙁
Whilst that was true in the case of 'classic charts', modern charts in Access now have similar functionality to those in Excel.
In fact both use the same Ivy charting engine and in A365 have almost identical chart types
The modern chart types in A2019 are much more limited
 

Users who are viewing this thread

Back
Top Bottom