How can I hide absolute numbers from the tooltip on a Pie Chart in Google Data Studio? - google-data-studio

I have a Google Data Studio pie chart showing the % of the Record Count metric, for various slices, but on hover, the tooltip shows the absolute number of Record Count. I don't want to share the absolute numbers with the customer receiving this report. How can I hide that?

Unfortunately it seems not possible as of now, here is the same question in the official support forum.
As stated by a user, the only possible workaround is to add a trasparent square over the chart, this would prevent the hover functionality to work.

Define your metric used in the pie chart as a percentage by setting the Comparison Calculation field to "percent of total". When hovering the mouse, something in the format 10%(10%) will be displayed on the card. Thus, the absolute value does not appear, even if the percentage is doubled.

Related

Winforms pie chart label text truncated

I'm using VS2019 and the default Winforms Pie Chart.
The legend appears as in the attached image.
I've tried playing with the chart size, and the larger I make the chart, the less truncated the legend text becomes, but it's going to have to be huge to fit it all in...
Any ideas why and how to change that so it's never truncated regardless of text length or chart size?
Thanks
EDIT:
Looking at the TextWrapThreshold and IsTextAutoFit properties of the Legend, the text is still graphically truncated, although it seems it is being "wrapped" like specified. This is still an undesired result..
What other solution is there besides enlarging the chart..?
#Yafim I'm moving the answer here because I need to post some images. You mean this is happening?
If this is the case, and you don't want the full legend text to appear inside the sections of the doughnut (because they are overlapping the doughnut itself), you can show the values only by setting the Series->Label->IsValueShownAsLabel property to true and get something similar to this:
Not sure if this was your problem, (you already showed in you photos you know about this)...

Victory Chart x-axis scale not working for Dates

I have an Area chart in Victory where the x-axis has dates.
I want to customize the x-axis Label and have created a CustomLabel component to calculate the x-axis scale and display "LABEL" below the ticks.
But for some reason, the scale is not calculated correctly for the Date Object.
Please let me know what I am doing wrong here.
Code here - https://codesandbox.io/s/3203z3n7r6
For anyone who may face this issue, I raised the issue in their Github Page and one of the authors has given a fix for it. Please see below:
https://github.com/FormidableLabs/victory/issues/1075

SSRS bar chart issue

I am trying to add one box and one line on x-axis. Please look at below bar chart.
I tried using stripline but I cannot set height for stripline. It goes till 100.
Is there any way I can do this?
Unfortunately, SSRS doesn't provide the functionality you're looking for. A stripline is the closest you can get to that, but like you said, you can't control its height. The only way you could simulate this behavior would be to use a Background Image for your stripline, but that may be more work than it's worth. It would require a lot of manual adjustment to get the image to line up on the chart.
I would add a series to the chart using the Stock chart (under Range). In the Series Properties I would set the High value to the height desired for your line (~52 in your example). Ideally this would come from a dataset value.
Set the Low, Open and Close values to 0.
Try two Stripe Lines. First, create the strip line which represents the vertical value you're after. In my case, I made one that was 50% of the graph height off of the Y-Axis.
Chart Properties:
Height of StripeLine:
Once the stripe line is the correct height for the chart, create a 'mask' stripe line along the X-axis that will cover the portion of the Y-axis line you want hidden.
Chart Propterites:
Width of Stripe Mask:
Using these methods, and some really clever expression writing, you should be able to make the line exactly as high, and as wide as you desire.

Initialize JFreeChart range axis values

I am trying to load dataset during initialization of the JFreeChart. But every time I tried to create a dataset with higher "number of item per series", the more data (all data) displayed visible in the chart (the bigger the dataset, the smaller the graph). But actually what I wanted is to have the fixed range of dataset values displayed on the chart while the rest is still hidden. Just the same way the data would normally be displayed in the actual trading platform, let's say Metatrader (MT4). First time when I open the chart I can see the screen filled with the only visible dataset of the chart and if I left-scroll the chart I will be able to see the old/history dataset as well. Does anyone have idea how to achieve this using JFreechart?
Really appreciate for any help or any thing/articles I can refer. Thanks so much!
You can use setRange() on either the domain or range axis, as shown in this fragment. If you've already tried this, it may help to edit your question to include an sscce and/or image that exhibits any problems you encountered.

Silverlight toolkit chart too many labels on axis

I'm using the newest chart control from silverlight toolkit to plot some data. For small cases it works ok, but for bigger samples the X axis labels overlap. It would be no problem if the chart would simply omit some of the values or I could specify to just show every 10th of them ...
I couldn't find any properties providing this behavior. Any ideas?
Assuming this is a Linear axis then you can specify the interval to use via the the Interval property on the axis.
If the axis in question is Category Axis then dropping some labels may not be valuable to the user. One option is to use the LayoutTransfomer to rotate the labels to an angle reducing the width needed for each one. See this Delay Blog on the subject.

Resources