kendo chart bar type series combined with line type series the chart reverts to a column type series - charts

I'm trying to add a line type series i.e. "series.Line(s=>s.Name("goal")" to a chart -- this is being used to show a threshold of sorts. The remaining series are bar types series: "series.Bar(s=s.Name("Rate1") and "series.Bar(s=s.Name("Rate2") and "series.Bar(s=s.Name("Rate3") and so forth. If I remove the "goal" line code then the chart renders as horizontal bars as expected; however, if I include the "goal" line code then the chart renders as vertical columns (the default I assume). Any suggestions?

I think you're missing understanding something here.
A line will travel from left to right showing (normally) the progression of a value (normally over a period of time). meaning that their zero value with be on the horizontal axis.
The Bars have a zero value on the Vertical axis.
Therefore the 2 series types are incompatible. Therefore, Kendo changes the chart from "Bar" to "Column".
So basically, what you're looking for is a Vertical Line series type (which I don't think exists).
You may want to look at showing these as Bullet charts instead.
http://demos.kendoui.com/dataviz/bullet-charts/index.html

According to Telerik:
The chart item does not provide built-in support for Pareto chart, in
other words the chart item would not be able to make the percent
calculations for you and you should take care of that prior to binding
the chart. When this is done you can achieve the same functionality by
combining Bar and Line series types. To create a second Yaxis
marked from 0% to 100% try the following code snippet:
chart1.PlotArea.YAxis.AutoScale = False
chart1.PlotArea.YAxis.AddRange(0, 100, 10)
chart1.PlotArea.YAxis.Appearance.ValueFormat = ChartValueFormat.Percent
Here's an example of how to calculate percentages in advance using MySQL:
SELECT a.`Year`, #count := (a.`count`) AS `Count`,
#total := ROUND((#count)/(SELECT #total := count(`year`) AS `total` FROM `table` c) * 100, 2) as `% of Total`,
#cumulative := (#total + #cumulative) as `Cumulative %`
FROM (SELECT #cumulative := 0, `year`,count(`year`) AS `count` FROM `table` `data` GROUP BY `year` ORDER BY `count` DESC) a
ORDER BY `Count` DESC;

Related

Merging Percentage Lines with The Bars in Tableau Desktop

I have a graph that shows the ratio (count) of payable vs. processed words among the total words on stacked bars. I would also like to display the same ratio in percentages in lines overlapping the bars.
At the moment I have them in two separate graphs, but I want to merge them so that it takes less space in my dashboard view. I am unable to select the dual combination view as it requires two measures and even though I keep trying to cmd+click+drag the percentage measure pill to my marks, it's only changing the calculations in the bars but not allowing me to select the dual combination view.
Since the percentages are basically the ratio of the green/total in the bars, I don't think I need any complicated configurations for displaying it, however, I am also failing to achieve what I want.
Could you please tell me how to do this visualization?
Edit: I noticed that the reason I couldn't generate the dual combination view was that I had three date pills (year, quarter, month), and by removing two of them, I'm able to generate the dual combination view, but it's far from what I'm looking for as it's only splitting the stacked bar into bar+line.
Neeku, I certainly understand the desire to minimize "real estate" in your dashboard. If I understand your needs correctly, I believe that overlaying a transparent-background chart over the first chart might meet your needs, if a dual-axis chart doesn't work for you (for example, if you wanted to overlay a line chart on a column chart that is itself already dual axis).
By way of example, here is a simple Sample Superstore dashboard with a line chart on top and a stacked column at the bottom.
simple dashboard
Change the line chart to "Floating"
Size it to fit over your column chart and change the background to transparent by clicking anywhere in the line chart and select "Format"
...Format Shading
...and "None" for the color selection
Your line chart is now an overlay, but it's pretty messy.
Click on the line chart and hide field labels,
...turn off "Show Header" for each pill in the line chart
Clean things up and it should look better:
Note: one big issue with this approach is that you will not be able to click to select chart elements of the underlying chart.

How to assign an individual mark style per measure?

Tableau version: 2018.1.3
Input table has 3 columns (timestamp, value, isSpecial).
The column isSpecial is 0 or 1
I am trying to build this plot:
X-axis: timestamp
Y-axis: value (marked as a line) and the special_value (marked as a circle)
I created the custom SQL:
SELECT timestamp, value,
CASE isSpecial
WHEN 0 THEN NULL
ELSE value
END as special_value
FROM mytable
I added the columns "value" and "special_value" to the measurements values. Also, I formatted "special_value" to hide NULLs.
I want to plot "value" as a line and the "special_values" as a circle and Tableau does not allow me to select the different marks styles for different measures on the same plot.
You need to create a Dual Axis chart to do that. Just drag value and special_value to the columns and select dual axis for the second item. Now you can select Mark Type for each measure.

SSRS 2008 R2 - Axes with Format M 25, T 26, etc

I'm using SSRS to produce a Gantt Chart. In my header I have a chart with the axis visible, but no series data, then each row has an embedded chart showing it's timeline
The last image on this page shows it: http://marcjellinek.wordpress.com/2013/08/19/how-to-create-a-gantt-like-chart-in-sql-server-reporting-services/
the horizontal axes is date and my users want it to display
M 21, T 22, W 23, T 24, etc.
Normally I could just cast to a string and get the parts I want (e.g. LEFT(FORMAT(Field..., "ddd"),1) or something like that) and then concat the bits I need; however, I have no field in an axes number format. I managed to get following using a format of dd ddd
Mon 21, Tues 22, Wed 23, etc.
Anyone got any ideas?
Regards
Mark
Well, you're not going to be able to accomplish this using only the Chart dialog, because it will only accept numeric entries for the label. However, if you assign numeric labels (such as the day of the month) that will line up the data in the desired order, you can then add labels outside of the chart area (such as inside a tablix) that will populate right below the chart and look like they're in the exact right spot. Here are the steps as I see them to accomplish your desired solution:
In the dataset where you are returning all of the data for the chart, add an additional field named "Label". The Label field should contain whatever text you would like to display in the label field (e.g., "T 22").
Hide the chart's labels and the corresponding Axis Title. This puts the bottom of the chart's horizontal axis several points from the bottom of the Chart area.
Create a tablix with a column group that is grouped on the Label field.
Then, in the details column of this new tablix, have it insert the Label field.
Set the WritingMode property for each cell to "Vertical" and adjust the spacing to line up with where the true labels should be residing on the chart.
Align the tablix with the chart, leaving 0pts of space between the two, that way the tablix will always be rendered directly below the chart.
There will end up being a small gap between the axis and the labels, but most end-users would never question it.
Hopefully, this makes sense to you. If any part of it doesn't, please reply with a comment asking your question.

SSRS overlapping column chart

currently i have the following chart:
It currently contains one column (blue one) and a range column (white one). But what i really need is a chart which looks like the following:
So the white column should be overlapped by the blue column. I tried to change the range column to a normal column and changed the "CustomAttribute" PointWidth but was not able to get my chart looking like the needed chart.
Does somebody knows how to do that? Thanks
#glh: I know that, it currently looks like this (changing the white range to column):
ANGEFALLEN = blue column
EINGEPLANTV1 = white column
Problem is that the white column is now right to the blue column.
If i change the order of the chart data the blue column ins right to the white column. But i need the white column to be behind the blue column like shown in the second picture of the main post / question.
Followup 25.04.2013:
The chart should look like this:
I need to move 1/3 of the white column behind the blue column so that 2/3 of the white column is still visible. The blue column has to be in the foreground and the white column in the background.
Overlapping Series:
Change the "overlapping" series to a "Range Column" chart type. This will allow you to layer the two series on top of each other.
Once you do this, you will notice that the series will get two value drop-downs:
Set the "Low" drop down to an expression with the value of 0.
Set the "High" drop down to the value you would like to represent.
Offset Series Position:
I am actually not sure if this is possible in SSRS. However, you can play with the widths of the layered series to achieve a similar effect.
Set the PointWidth propety of the series (under CustomAttributes) either larger or smaller than the default .08, depending on your desired effect.
Here is a quick mockup I put together. It isn't exactly what you were looking for, but maybe it'll get your creative brain juices flowing.
You should be able to drag the values around in the values box or there will be a blue up or down arrow to alter the order your data is displayed. See below for an example of what you will see when you select the charts data.

Gantt over time with summed bar

I'm having trouble creating the following chart in Tableau.
I have data that looks like this:
name date count
a 11/10/2012 2
a 12/10/2012 3
a 13/10/2012 2
b 12/10/2012 6
b 13/10/2012 2
b 14/10/2012 3
c 14/10/2012 2
c 15/10/2012 2
And I want to create a bar chart that has the sum of the count on the y axis and time on the x axis. The width of the bar should be the length of the time, like a Gantt chart. Each name has its own bar. Here is an image that shows what I am after.
The bars should overlap if the times overlap.
I have tried various things in Tableau but haven't really got close.
Is this kind of chart possible in Tableau? If not in 7, will it be in 8? I have heard it makes it possible to create some more complex chart types.
A workbook with data can be found at http://community.tableausoftware.com/servlet/JiveServlet/download/188799-12362/Gantt%20over%20time%20with%20summed%20bar.twbx.zip
Thanks for your help,
Andrew
The trick with Gantt charts in Tableau is to put a calculation on the size shelf that calculates the duration of each bar in units of days. See the example screenshot at Tableau example
You also need a continuous date field on the columns shelf to get a horizontal time axis.
In this example, I also did a few more optional things, such as, turned off aggegation under the analysis menu to get a mark per data row, rather than aggegating them, added a discrete date to the rows shelf to make each bar go on a different line (as long as each bar starts on a different date) and hid the column for that start date.