Perspective Bar Chart value labels

As per above method i have successfully displayed the values at the top of BarChart but not able to Resize & Reposition the label at the Top of Bar. It is also not resizing as per the size of the window.Kindly find the attached Screenshot for reference.

I have found that my method i talked about above does not work well if you have multiple bars per category. this is because the “invisible line” series doesn’t line up with its respective bar.

Hi Phil

I see sometimes my label relace with … even I have enough space.

I play a lot with every property but nothing works for me.
Do you know any solution for that?

1 Like

I think you may need to update the bulets.0.width or length property.

I did it but nothing is changed.

Weird. let me make a test chart and see if i can duplicate this behavior so i can try some things.

1 Like

Thanks just consider the orientation of bar chart which is horizontally.

I can simply replicate it by switching between preview mode and design mode (press F5)

i used default settings and changed my chart to horizontal just to check but i didnt have this issue. when setting up this chart did you change any other bullets properties?

Your setting is exactly my setting and I think if press F5 several times (trigger between preview mode) you will see this bug.
As I told you, the bug only happens randomly when the chart is updated or the page is refreshed or in designer, you trigger preview mode.

Yes i did try preview mode as you are correct that sometimes going into preview things change. i have also pushed a version of this to our live project and i do not have any issues. This maybe something that Inductive technical support can help with. they know all the properties and how they affect components much better than i do.

1 Like

I finally find the bug. When I put the XY chart in a flex container it shrinks without looking shrink, grow settings, so I have to put the XY chart in XY coordinate container first and then put it in flex.
The problem appears when I change the XY coordinate container mode to percent.
For solving this bug, I simply change it to fixed mode and use width: 100%, height: 100% instead.

My only problem is how to change its style?

1 Like

In this thread, I got some help with style changing some with CSS

I have a different question though.
I want my legend to appear at the top, but with the second series, I am not sure how to hide that label specifically in the legend.


shows both names from each series

oh, apparently, I can just delete the name in the duplicated series, and since the value shown is determined in the label, the numbers still show correctly.

For color, font size and so on, you can use the series tooltip.text formatting.
For example, setting the bullet's label.text to "[bold;#CC3333;font-size:20px]{field}" makes the label on top of the bar display "field" as a red, bold text with size 20px.
I'm still looking for the documentation on how I can pass multiple styles.
It would also be cool to make the label appear depending on some condition. For example, if a bar has the value 0, I don't see the point in displaying "0" and no bar...

1 Like

how its possibe first my data is come data set then follow this prop then not coming bar chart only showing line chart and value

to get the bar chart you need to make a series with the render property set to bar. My example on this was to create a line with labels to go in addition to the bars.

It doesn't show up even though you did the same thing you chose.

What should I do to get the value?

The answer is in post #2. You can't apply labels to columns. You need to copy series 0 to series 1 and render that as a line. Then copy the settings shown in post #2. You can make the line and bullets invisible so that only the labels show.

1 Like

Anyway I can change the color of the text?

Dan, you need to be more specific. Change the color of what text.