How do I insert free text/arrows into a bar chart in Contour to identify specific events that happened on a specific date? - palantir-foundry

I have a bar chart with exact dates over several years (ex: January 1st, 2016 to February 30th, 2019) on the x-axis and the number of events per day on the y-axis (ex: number of gatherings). On this bar chart, I am trying to also indicate certain dates on which some type of change occurred (ex: a fair opened causing an increase in events). I want to be able to indicate this either with a colored line on the bar chart and a legend on the side explaining the change corresponding with that color (ex: purple line marked on January 3rd, 2016. legend shows purple line with explanation: "fair opened") or an arrow marking that date with the text relating to that event (ex: "fair opened" with arrow pointing to/from January 3rd, 2016). I'm not sure how to go about doing this (would this require uploading a dataset into contour?). I'm pretty new to Contour, so any help is appreciated!

In general, Foundry is quite strongly opinionated that things should be backed by "data", so if you want to keep track of and display events in your charts, you'll want a dataset holding your event data.
The quickest way to go about this would be to create a new Fusion sheet and sync a table region to a dataset. You can then copy/paste or simply manually enter data into the spreadsheet and it will update the related dataset. In Contour, you can then add an Overlay to your existing chart and point it to the dataset holding your events. If you make this a scatterplot layer, you can, for example get a circle drawn on the chart where each event takes place.
There is much more robust support for timeseries and event type data once your data is incorporated into the Ontology layer, where you can use Quiver and Vertex for more complex visual analysis and dashboard building. If you're just interested to explore these features of the platform, check out the first few courses in the APPDEV series which will introduce you to the Ontology layer and the basics of Quiver.

You can't have an arrow or free text overlaying your chart in contour.
However you could have another chart line layered with the first one that just overlaps and highlights the section you want. That layer will have its own legend, so it would have a similar effect.

Related

3D Area Chart SSRS Report 3rd Axis

I would like to have a 3D Area Chart in my SSRS Report, which contains 3 Dimensions like in Excel to display the month, volume and categories, the data of these three columns.
It should look like this example below (Pic just an example, taken from Google):
The problem now is,I seem not to be able to add the third axis to display month in ssrs. Does anybody here have a solution for that?
Thanks!
I'm not sure that you can achieve your example without buying some additional chart types.
The closest I could get (in the 10 minutes I had spare) was to setup a 3d Area chart as follows... (note: my dataset only contains year, month and amount for simplicity)
Which, based on some sample data I had... gives the following..

SSRS Line Chart: Adding an Average/Target line to Line Chart

I'm sure I'm missing something obvious but it has so far eluded me.
My current report:
I have a dataset of employees' absences at my company.
It is essentially broken down by department, date and time lost.
I have charted this as below:
The manager is shown their own departments dynamically using a filter on the series group.
By using a report level filter I can cache the dataset overnight for all departments.
My preferred report:
In order to give some context to the data I would really like to add another line showing the same data for the whole organisation.
This data is already captured and I can add that "department" for all users so they get a graph as below (new line in blue with square markers):
The trouble is that I want the extra line to appear completely differently to the existing lines
I don't want the extra line to have markers necessarily
I don't want the extra line to appear in the same legend
I don't want the extra line to have an action (i.e. be clickable)
In my perfect world, there wouldn't even be a line, just a change in background colour above and below where the line would be. I haven't been able to find a pretty example of what I am talking about so instead I have produced this hideous travesty in ms paint:
Any help gratefully received!
Can change all of that information/treatment by modifying the series.
Firstly change the Chart Type of the series to Area
Which gives you something like....
All other settings you mention can be done in the series properties
eg
Right Click Series, Select Properties, Legend, Check the box marked
[Do not show this series in the legend]
Set the Action (in series properties) to None
Set the markers as you want
I have achieved partial success using the StripLines property for the Y Axis:
Screenshot of setting:
I added a Member then changed the BackgroundColor and StripWidth.
The StripWidth determines the height of the shaded area and can be an expression.

How to Format the Labels in a Pie Chart in SSRS 2008 R2

In my SSRS 2008 R2 Pie Chart I want to display 3 values which are calculated fields in my dataset.
The dataset collects a bunch of stats for call center agents. Among them are ProductiveTime, ExcepctionTime, NonProductiveTime, for, of course, a given time period.
If you think you need a bit more details read this paragraph:
The systems keeps track of each change of status in an agent. For example, on break, lunch, in a meeting, training, etc. Then in my stored procedure I create an additional column that has the category of that status, so, for example, lunch, on break will be NonProductiveTime, and so on. Between the selected time period there will be hundreds of entries logging each time there is a change in status, and how long the status lasts.
So back to the Pie, I am adding the SUM of those 3 values to the Chart Data, each one being a series.
The problem I am having, is that when I select the Series Label Properties and configure the format for the Number, only the first series picks it up. It doesn't make a difference if I do it using the UI or the properties window.
What am I doing wrong?
i had this same issue, if you just use the arrows (little blue arrows at the top of the chart data box) to move the value to the top of the list you can edit the label details/code/expression etc for that series. then just repeat this for all the values you've added.
i'm sure there's a better way but this worked so that's what i did.
It seems that when you are editing a label it is only ever editing the item/value at the top of the list, after you've done your labels then just shuffle them back into the order you wanted them listed
I have found you can get this with formatting the 'Label' property of the collection 'Chart Series Labels'. I have also ran into issues with problems of getting enough info of how to format. I think you can get what you want by some built in 'system syntaxes' used.
Here is an example I used to format the YValue and give me a percent on it's value as well:
#VALY{###,##0} (#PERCENT{p0})
Please see a more inclusive list on this msdn page:
http://msdn.microsoft.com/en-us/library/bb677551.aspx
You can format your series labels by going to property of each labels, First Right click on all series properties and tick "show data labels" and then select first property and press F4a property window will open ->under LABELS--> find fonts you can set here.
You can set other properties also here.
I couldn't figure this one out so I went ahead and created a new stored procedure that gives me the data as rows with two columns: one column for the property and one column for the value.
That way I can use just one series for the chart, and to display as percentage, I found this one to be very useful: http://bipassion.wordpress.com/tag/ssrs-pie-chart/
Looking at the answers above and my latest VS 2015
I used these steps
1- Clicked on the Value in "Chart Data" box
2- Clicked on "Show Data Labels"
3- Press F4 to open the "Properties" window on the side
4- Expand "Label" section in the "Properties" window
5- Change "Label" and "Format" property under Label section in the "Properties" window
6- I got a message box says if I want to change the label property then I have to set "UseValueASLabel" to False

How to add moving average to Report Builder 2.0 chart

This is driving me nuts. I've looked at all the relevant MSDN tutorials but they talk about 'data field drop zones' and how a 'Add Calculated Series' menu option should be there but it's not, and no screenshot is provided to show what a 'data field drop zone' is. This is the menu I get when I "right-click on a field in the data field drop zone":
The frustrating thing is I know I've seen this calculated series stuff before, but I can't find it again, it's not in the 'Series Properties' dialog that I can see, and I can't find a tutorial showing how to find this feature. I'm guessing you can only have a calculated series on certain chart types, or I don't have some flag turned on or something, but I didn't see that mentioned anywhere.
Can you tell me how I can add a line showing the median of my data to a chart in Report Builder 2.0? I think I can do this by adding a 'Moving Average' via a 'Calculated Series', but I can't find how to add that.
Edit: on a different chart, the 'Add Calculated Series' menu option was available. It was a stacked column chart and the series I right-clicked on was an expression that used RunningValue.
I had to remove the series group (from the 'data field drop zone' on the right side of the chart) so that all I had was 1) a category group (bottom of the chart) and 2) a data series (top of the chart). Then I could right-click on the data series at the top of the chart and 'Add Calculated Series' was a menu option.
I solved it by making the groups as individual series and then a combined series that i set to hidden. I was then able to make the calculated series from the hidden series.

Switching Chart types on the fly

I'm working on a reporting app which displays incoming data as pie by default. We'd like to offer the user the ability to switch to bar, or column, or area, or any of the other charts with the click of a button. Since we already have the data in the app, it should be fairly simple no? Does anyone have an idea of how I might approach this?
andy
You can approach this a couple different ways. If it was me I would either set up a view stack with each of the chart types you want the user to switch to and they you can simply change the viewstack selectedIndex. Alternatively, you can have just a single chart holder container. Then just make function to dynamically generate each chart (Example). Then all you need to do is remove the existing and add the new chart.
I accomplish this by creating a state for each specific chart type. Then just change between states based on user input. You can use one data provider for each chart or create specific data providers for each.