I am trying to create side by side bar chart with the line chart on the same axis. My X-axis shows months of the year with the new cases and completed cases as bar charts and I need to overlay it with the Turn around Time as a line chart.
Bar Chart
The data provided has different case status (New, Open & Resolved) and the starting date for the cases. I need to create calculated fields to count the number of new and completed cases and display it in the side by side bar chart. I am connected to a live data source. So, I think pivot is not an option for me as it is not getting displayed when I do a right click on Tableau.
Tableau is unable to natively build a side-by-side with lines due to how side-by-side charts are built - each cohort holds the cluster of bar charts, so the lines will only be continuous within a cluster.
That said, this can be done easy enough. Take a look at chart 37 and its accompanying video demonstrating how to build this from my how to page: Datawonders | Show Me
The workbook is downloadable too
Steve
Related
I have my line chart showing all the data properly, including some annotated values which are meant to act as the label in the last data point for the lines. I wanted to do it this way so that I don't have to show literally every data label for every data point.
I have everything working correctly, but I noticed I am unable to remove the annotated legend item without removing the series. By removing the series, I lose the label. Below is my chart.
As you can see, the last data points are working as labels (1092 for example). The problem is you can also see each annotated item in the legend (the colored dashes with no text next to them). How can I only show the legend items for Gained (green), Lost (red), Net (gained - lost) (yellow), and Total (blue), without the other dashes? Is this doable?
I am also open to seeing if there is another way to have only the last data point have a data label in Google Sheets. I was just working off of this tutorial.
Below is a screenshot of some of my data rows in an accompanying sheet.
as long as the annotation column is specified as 'Label' for the primary column you shouldn't be seeing the former in legend
I am trying to illustrate the twist in a sail using a chart, showing the effect of various twist amounts.
However, try as I might, I cannot swap the x and y axis! The cells B3:B8 are the height going up the sail, where the measurements were taken, and should be the y-axis.
The columns C:V are series, which are different sets of measurements taken at the various heights up the sail, with the degree of twist as the series' values. This is what I have:
I've also tried to create the chart from Transpose()d data (swapped rows <-> cols) but ended up with the same chart! The "Height" is supposed to be the Y-axis, and the values ("Degrees") the X-axis.
I must be missing something obvious, but Google is not my friend today. I have created a sample Spreadsheet here if anyone can help. MTIA.
Currently it is not possible to define the Y-Axis to a specific range for Smooth Line Chart, in fact, the only way this can be defined is by using Bar Chart.
As a workaround, you can use Bar Chart to define the Y-Axis like this:
Please note that it only looks best when displaying one or two series, the bars would look squished when more series are added.
As for the original intention of defining Y-axis for Line Charts, or a completely new type of chart, you can file a feature idea request here:
How To Submit a Feature Idea Request
Google Workspace Feature Idea Request Link
I'm trying to put together a combo chart that will use time values for the x-axis as well as the line series and combine that with integer values for the bar chart portion.
The problem is that because my times are between 00:02:00 and 01:30:00, the bar graph's values of 1-15 dwarf the time values.
Is there a way to display the bar chart with a separate scale so 4 and 00:04:00 look reasonably close?
I would like to create a stacked bars chart with TDBChart using a single dataset.
As far as i can see if I use TDBChart as i choose a stacked chart 2 series are added.
This component seems good to create stacked charts from many datasets, in which each dataset contains data of a specific type.
I make an example to clarify:
let's say I have a dataset (dtsSalesAllCountries) with the following info:
country
year
total_sales
in this way in principle i could plot a stacked bars chart in which I see bar per year and the total_sales for each country are stacked.
But TDBChart does this through series, so to perform my result i am currently forced to create one series per country (sqlFranceSales, sqlItalysales, sqlIndiaSales, ...)
This is quite unconvenient, each time i sell to a new country i must add a dataset. This is how it looks like with this implementation:
Please note I need to use TDBChart since I use ReportBuilder/TeeChart integration, that is based on TDBChart.
In fact what i am looking for is a pivot chart, that is not available in the Report Builder/TeeChart integration.
Is there a way with TDBCHart to achieve the stacked bars sales chart i am trying to implement using a single dataset and not one dataset per series?
For TChart itself you would configure the Data Source for the Series as a CrossTab. The extra series will then be created for you. Not sure if it can be done with TCharts embedded in ReportBuilder reports.
With source data from SQL Server:
SELECT * FROM (VALUES ('CA',2012,2500),('US',2012,5600)
,('CA',2013,3000),('US',2013,7000)
,('CA',2014,2600),('US',2014,8000))
AS A(Country,Year,Sales)
Produces:
When zooming to a single date on a column graph with two series one of the columns gets pushed outside of the chart drawing area.
You can see it in action here http://alfred.stlouisfed.org/graph/?g=Sfs
and here is a screenshot of the dev inspector highlighting where it appears off the graph edge
Has anyone seen this before? Or have any idea what settings may be affecting it? It works okay if you zoom out to two dates, but unfortunetly the product owners are insisting on only showing one date.
Thanks!
Every two columns of your data is for three months, not for a day. The chart selects a starting point for every timerange and sticks to it. If you zoom in the empty area in the scale of a day you will see nothing. So correct your data, or your scale of zooming.