Different distance between bars in clustered Power BI bar chart - powerbi

I came across this unusual problem. I try to create chart showing top 1 manager(Y axis) by rating (X axis) from each region, with Region added to legend for color differentiation. However, then bars are located on uneven distance from each other, some are closer, other are further from the next one. (picture 1)
Issue seems to go away if I add Region to Y axis above Manager's Name, but then Y axis shows region labels (picture 2), and not managers names. if it's added below or removed, bars go haywire again.

I had the same issue and think it's because PBI is trying to display all the categories from the Legend on the Y axis, which show up as "hidden" or blank bars in between your other bars and make it look like the spacing is random. I was able to fix this by switching from a Clustered Bar to a Stacked Bar chart. Couldn't figure out how to suppress those other legend categories from the Y axis in a Clustered Bar. Hope that helps.

Related

How to show y axis text labels instead of the count in power bi

I am fairly new to power bi and I am trying to create a stacked bar chart of two columns ( one column contains type: individual, Business and government. a second column contains new connections, complaints , etc) I want to create a stacked bar chart with the type on the x-axis and the reason on the y axis. so what I did is this:
the x axis shows the 3 types: government, individual and business but the y axis shows 0,50,100 and not the actual labels ( new connections, complaints,...). is there a way to show the text ( new connections, complaints, etc) on the y-axis instead of 0,50,100
this is the columns:
I tried to change the count in the y-axis but there was no button for it, I need to change the y axis labels to the text inside the actual column instead of the current numbers, is there a way to do this?
Hello there should be a button for it as in the image below.
Like the red arrow shows, and you can change it there

Why do Bar Pie Chart values not line up?

I'm working on a Bar Pie Chart but my values are not lining up. For example, Red data is clearly larger then blue, but blue value is higher.
The data is correct, chart.js doesnt show the area as more, it uses the angle of the circle , which normally would also divede the area normally. And as you can see the angles are correct so to fix your issue you will have to write a custom controller that draws your chart. https://www.chartjs.org/docs/latest/developers/charts.html

chart.js tooltip position, tooltip not displayed

I have a line chart with two datasets. Initially the Y Axis is 0-100. The first line is roughly a straight line around a value of say 70, the second line is all below say 30. If I zoom the chart vertically by forcing the Y Axis min to 65 and max 75 (ie I want to exam the first line expanded vertically) then when I hover over a data point, the tooltip is missing. Actually I figure it is off the chart (so to speak :-) ).
The tooltip seems to be automatically positioned vertically between the lowest and highest data points, even if one of those data points is way below the chart.
My question: is this a bug or is there a way I can tell chart.js to ignore data points that are off chart when determining tooltip vertical position?
I'd even be happy if the tooltip was always at a fixed vertical position, ie across the top of the chart or centred vertically on the chart.
Using chart.js V2.7.1
Tooltips have two positioning modes, as per the documentation:
Possible modes are:
'average'
'nearest'
'average' mode will place the tooltip at the average position of the items displayed in the tooltip. 'nearest' will place the tooltip at the position of the element closest to the event position.
You can see both modes in operation at the relevant samples page.
average is the default mode. From your description, switching to nearest should resolve your issue.

Axis on Google Charts - Bar

I have created a Bar Chart using Google Charts. I am not able to get the X axis for the Bar Chart even though I am getting the axis labels. I tried using baseline but to no effect.
**I have added an image of what I exactly want.
**
Please refer to the image.
Could someone please let me know how I could enable X axis for Bar Chart.
I am also facing a similar issue with Y axis Column charts.
Regards,
Farhan

Google Charts API - Overlapping X axis labels

I have a chart generated from Google Charts that can be found here: Chart generate by Google Charts API. As you can see the x axis labels are being overlapped.
Anyone knows how to solve this?
See the docs under Bar Width and Spacing (chbh). There's this snippet:
a - space_between_bars and space_between_groups are given in
absolute units (or default absolute values, if not specified). Bars
will be resized so that all bars will fit in the chart.
So just add chbh=a to the options. Here's the example with this option added.