PowerBI Line Chart Data Labels overlapping - powerbi

if you see the image of the chart that i built in powerbi, you will notice that some of the data label points are overlapping making the numbers hard to see?
I did some googling and found lots of people with the issue but no solutions beyond rolling out your own chart in r or python.
I checked every setting on the chart that i could and i was unable to find anything that would resolve the issue.
Has anyone found a way to fix this overlapping?

Related

Time series annotation layer in Superset Apache 2.0

I'm creating a dashboard in Superset, and I need to color format the values on a time series scatter (color based on thresholds). I can do this with the Time series annotation layer using the Mixed-Time series for the scatter and the Line chart for the annotations:
So far so good, but when I put the chart in the dashboard, the scatter is filtered according to the time range in the native filters, but the line chart is not!
I tried pretty much everything but nothing seems to work! Furthermore, it says in the viz gallery that the line chart is deprecated, so how to do time series annotations if there's no other chart option avaiable? Confused, so any help would be really great! Thanks!

chartjs conditional formatting for line and area

is there a way for chartjs to do conditional formatting for it's line and area fill charts? basically if values are above a certain threshold, turn the line color to red(or another) vs a different color when values are bellow the given threshold. after looking around I found that AmCharts which does exactly that. Problem is I already have so many charts in my project done using chartjs am wondering if there could be a way of doing it in chartjs as well, rather than have AmCharts as additional resource to load.
any help would be appreciated

Chart dates unevenly spaced on axis with lots of data

problem screenshot
Hey guys, I'm having a problem: as you can see in the screenshot, there are some resolutions that the distance between the last and the second to last dates on x-axis is greater than other ones when you use a lot of data on that axis. Can somebody with a project like that test to see if this happens to every project? Probably this is the way Chart.js handles putting more elements on x-axis, but can I do something about it?
Thank you very much!

Baidu ECharts2 dynamic chart position based on the legend height

I'm using Baidu ECharts2 to visualise a dynamic amount of series (up to 100) as a line chart.
The issue I face is the legend overlaps the graph in case if the series are too many.
I spent good 2 hours in searching the documentation and reading, but cannot figure out any way to set the graph position (y/y2 top/height).
It seems the chart consists of different elements (legend, toolbox etc), but none of them seems to be the graph itself.
An example I found showcases a fully responsive way to position pie charts, but this is not applicable in my case:
https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/pie-media
I'd be grateful if someone has more experience with ECharts and can tell me way to move the graph down by y and set a height.
Thank you!
Your best option may be to set the legend type to scroll so it fits on one line.
legends.push({
type: 'scroll',
show: true,
data: myData,
...
});
You may also be able combine Ovilia's and Zain's solutions to move the grid down to leave space for the legend. Unfortunately that would require a way to determine the legend's size before setting the chart's container size.
You can set grid position to make it.
In ECharts 2, you may set grid.y, grid.y2, or grid.height.
In ECharts 3, you may set grid.top, grid.bottom, or grid.height.

Get the color value for a Google line chart?

It's possible to set the color values for a Google chart, but is it possible to get the preset color values for a chart? Is there an array that holds those values, that can be accessed?
From this Google Groups Discussion the default color array is not documented and cannot be accessed. However, if you want the array of colors, Xavier Gumara posted it, as did asgallant:
{"#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"}
Just an FYI, a large portion of these sorts of questions have been covered on the Google Groups by folks like asgallant, and it can be worthwhile to do a quick search to try to find them (quicker than waiting for me to do it!). The above answer was the first two results for 'google visualization default colors'.