This topic is locked

show all labels on chart

6/8/2023 4:07:15 AM
PHPRunner General questions
P
pmuckle authorDevClub member

Hi All,
I want to show all of the labels on a chart, not just alternate labels as shown here:
img alt
I might need to reduce the label font size as well.
How can I achieve this please?
Thanks
Pete

fhumanes 6/8/2023

Hello,
As I just indicated in another of your messages, Anychart's use will give you all those possibilities.
https://fhumanes.com/blog/otros-ejemplos/uso-de-anychart-en-snippet/
Greetings,
fernando

Sergey Kornilov admin 6/8/2023

I hink you have two options here:
<ol> Increase the chart height Decrease the font size
</ol>The combination of these two should give you what you looking for.

P
pmuckle authorDevClub member 6/9/2023

Thanks to both of you
I really want to learn how to use AnyChart fully, but it is a huge step from phprunner configuration to coding Anychart and I am not familiar enough with php to understand/reverse-engineer your example.I have found the .js map data file, which I can reproduce.
I would like something that resembles the one in the link, but using a custom map shape (based on animal body parts rather than countries/regions) to display data. It would have a similar select list and graph on the left.
Is there a video explaining how the example works? Or, is there anyone available to help me with this? Or point me to some instructions.
Sergey, I increased the height, which does work but doesn't fit on the screen. How do I reduce the side of the font in the labels please?
Thanks
Pete

D
DealerModulesDevClub member 6/9/2023

Hi Pete,
A good portion of your chart is showing countries without any data. If you don't need to see the countries without data possible change your query to filter them and your chart will look better.
If you need to see countries without data, maybe show two charts one with countries with data and one without.
Paul