Text instead of numeric values in Y axis on a Scatter chart - QlikView - scatter-plot

According to http://www.learnallbi.com/scatter-chart-in-qlikview/ , a Scatter chart in QlikView is "Scatter chart is very useful in displaying the relationship between 2 numeric values over a dimension."
Now i'm wondering, if I have a column with text values that are either "High" or "Low". Can they be in a y-axis of a scatter chart? like this scatter chart with string/text values on Y axis.
I've tried for a while, but it doesnt seems to be working, or maybe Im just doing it wrong..
Thanks in advance

Related

Set fill color of center column in amCharts Step Count

I am trying to use amCharts and have an interface that looks alot like the step count chart here:
https://www.amcharts.com/demos/step-count-chart/
I want to be able to set the fill color of the column in the middle of the chart. Also when the chart is dragged the color of the columns should change so that it is always the column in the center that has the special color.
Is this possible?

Is it possible to change the x scale of a rowchart to sqrt?

I want to change the scale of the x axis of a row chart because some values are close to 0 but others are over 100000. I have tried this:
chart.x([d3.scaleSqrt().domain([0, 75000]).clamp(true)])
but it doesn't work.
However, this same method does work with a barchart. Any suggestions of how I can solve this?
EDIT: What I meant by 'it doesn't work' is that it shows the rowchart but the x axis is what comes by default, so there is no rescaling of the axis.
First off, you've got an extra set of brackets - that should be
chart.x(d3.scaleSqrt().domain([0, 75000]).clamp(true))
Since you don't say what didn't work, I will guess that you got a "squished" chart.
Here is what I got when I first tried this:
Unlike other dc.js charts, the row chart will not set the range of the X scale when the scale is passed in by the user.
For other charts, dc.js will initialize the range based on the "effective width" - the width of the chart minus the left and right margins.
We can do the same:
chart.x(d3.scaleSqrt()
.domain([0, 75000])
.range([0,chart.effectiveWidth()])
.clamp(true)])
My example now looks like

Format tick values in D3

I want to display values with floating point in my d3 chart, with two decimal places.
Data values set in floating point format as 12.385, 12.384, 13.627...
I create axis as yAxisR = d3.axisRight(y3).tickFormat(d3.format(".2f")) but in axis tick still integer values (12, 13).
If change format for some another value, for example ".0s", axis ticks changes but still not on the that need
https://jsfiddle.net/ochp2dmu/ red right axis
This works just fine for me in your fiddle.
yAxisR = d3.axisRight(y3).tickFormat(d3.format(".2f"))
Make sure that you add more of a margin on the right side of your chart in order to see the entire tick label on the right y-axis. It was overflowing off of the window for me, so I changed the right margin to be 40px.

Birt: Formatting chart tooltip and adding aggregation to a chart tooltip?

I have three questions regarding Birt Tooltip
1) How do I format the number in the default tooltip (If I am not adding anything to the tooltip text). I tried to change the format of tooltip of Y Value Series but I realized that only works if I have put an expression in the tooltip of the Y Value series. I have not edited the tooltip of Y Value series, the chart will show the default data label instead and I am not sure how to format the default tooltip
2) I have plotted sum(revenue) on Y axis and months on x axis. I wanted a custom tooltip so I edited the tooltip expression of the Y Value series in chart. What I found was that the default tooltip was showing correct value but If I put the same expression row["revenue"] in the tooltip, the tooltip shows a data value that is much less than sum(revenue) that is plotted in the bar. I believe that this is because the tootltip is not aggregating the revenue? If Yes, then how do I put the sum(revenue) in the expression?
3) I wanted to add another information (count of units sold) so I created an aggregation count(unitssold). I called this cnt_unit_sold and added this to the tooltip of chart. The problem is that if I put my mouse over a month bar, the tooltip shows aggregated count for all months rather than that specific month. How can I add grouping to the aggregation so that it shows the aggregated count for each month rather than for all months
Regards
Arif
OK, so in case if someone has not found an answer to this question, here is the answer. In order to add aggregation to the tooltip, you need to create aggregate outside the chart's contains (for example create aggregation inside a grid). Then you can use that aggregation in the tooltip
Arif
I someone is still trying to achieve this, now you can use "valueData" instead.
row["dim1"]+" for "+row["period"]+" : "+valueData
in my example (the code goes in the tooltip expression) I asm using a stacked barchart, dim1 is the series used to stack values and period is the X series. Valuedata is the Y value (aggregated)

Can jqplot barRenderer poitlabel date be shown with some angle, just like the X axis ticks?

I have some data to be shown in a barRenderer.But there are some issue:the datas shown will Overlapping which will cause the datas can not be clearly read.Is there any way to deal with this?Or is it possible to show the data with some angle?Thanks a lot..

Resources