Perspective 8.0.14 Time Series Bar Chart width

I have the chart displaying how I would like, but can not change the width of the bars in the chart.

I noticed the scatter render type has a radius parameter, am I missing something for the bar render type?

image

Thanks!

@Mason.Younger, you’re not missing anything. There isn’t a setting for bar width. The width is calculated automatically based on the number of data points being displayed on the chart.

This question has come up before. Since there is interest, I will open a ticket to allow for width adjustment.

2 Likes

Hi @jball , If the bar thickness is being calculated automatically then how are people able to create bar charts that look like this:

and

I have a stacked bar chart with just 7 data points (along time axis) and I still get thin lines instead of thick bars!!

Hi @Mason.Younger , it’s awesome you were able to draw those 3 horizontal lines for Best, Flex, Target, could you please share how you were able to achieve this?

@arun1, you likely have your 7 data points spread out over a long period of time. That longer period of time will create an X axis (time axis) that is much wider, and sparse data will result in thin bars. The first example has a few points spread out over a very short period of time. The second example is the XY Chart (as opposed to the Time Series Chart).

Yup you are correct, my 7 data points were spread out over 7 days. I switched to XY chart after you pointed it out and was able to get it to work after a lot of trial and error. Is there a place where I can post the steps taken to create such a stacked bar graph? might as well save others some time, there is no point in reinventing the wheel :neutral_face:

You’re welcome to create a new post in this forum and cross-link to the this thread as reference. I think others would certainly find that helpful.

Where can I find the steps you took to achieve your stacked bar chart? I am looking to do the same. TIA.

@valerie.garciakutlu Sorry about the long delay, I had moved on to other projects. It must be too late to help you but here it is any way:

Here is the write up:

1 Like

Hi,

Do you have a solution for changing bar width ? Even if I have a few values in my chart, bars are thin. In my opinion auto width calculation is not working. :man_shrugging:
I’m on 8.0.16.

No solution in place yet. I’ve got a ticket open to expose some options for adjusting the bar chart width on the Time Series and Power Charts. I’ll give it a bump.

Is there a solution for this now?

No work has been started yet, but the priority of the ticket was raised.

Not sure we have the same chart, i dont rly use the charts, how did you get both bar and line?

anyways this css worked on the timeserie barchart for me. You might need to set some offset too if the center no longer matches the x value idk

.ia_barChart > rect {
    width: 132px;
}

image
image

2 Likes

Any idea how to offset the center of the bar? :face_with_peeking_eye:

something like this i guess?

.ia_barChart > rect {
    width: 132px;
    transform: translate(15px)
}
2 Likes

Works perfect :ok_hand:t3:
Thanks!

1 Like

I vote for adding a property to allow how wide the bars are. They look really silly if you have data that spans over several days.

The XY Chart bars look much nicer. So a workaround would just be to use that component until inductive makes this a little bit better.

image