Tableau axis dynamically set on formula - formula

Is it possible to set fixed axis on formula?
I have several countries plotted in different graph
UK, FR, ES,
I would like to be able to set fixed end dynamically according to the selection?
Many thanks

Yes you can, you can click on measures and use fixed axis option..
If this doesn't resolve, please attach a screenshot or please elaborate your issue.
HTH..

As of v9.2 you can fix one end of axis and keep the other one automatic or independent

Related

Plotly Multi Column Horizontal Legend

I am trying to create horizontal bar chart in in R using the plotly package. Due to the length of the legend items I would like for them to show horizontally at the top or bottom of the visual in 2 columns. Is it possible to dictate the number of columns for the legend?
I've been able to place the legend below the x axis successfully using Layout(legend = list(orientation='h')) however regardless of where I put the legend (using the x and y arguments) it is always just one long list. I've seen a github project for creating a multi column legend in js but not r.
Thanks,
This is not possible in a normal way. I think it has its own logic that determines how many place there it is and how many columns it will display then.
So I guess if you make your plot width smaller you could reach the goal that it will just display 2 column.
Also you can try to play around with the margin attribute (https://plot.ly/r/reference/#layout-margin) by setting r and l to 10 e.g.
An other idea could be to make the font-size in legend (https://plot.ly/r/reference/#layout-legend-font-size) bigger, so that it just uses two columns. Hope it helps.
I read the same github page and I thought that it is not possible, but seems to be! I only checked in Python, but I hope this will help in your endeavors in R as well as everyone in Python looking for information. Sadly, there is not a lot of information on Plotly here compared to other packages.
This solved my problem
Setting orientation='h' is not enough. You also have to put the legend items in different legendgroups, if you want them in different columns. Here is an example with legend labels:
fig = go.Figure([
go.Scatter(x=best_neurons_df['Test Size'],
y=best_neurons_df['Training Accuracy Max'],
# You can write anything as the group name, as long as it's different.
legendgroup="group2",
name='Training',
mode='markers',
go.Scatter(x=best_neurons_df['Test Size'],
y=best_neurons_df['Validation Accuracy Max'],
# You can write anything as the group name, as long as it's different.
legendgroup="group1",
layout=dict(title='Best Model Dependency on Validation Split',
xaxis=dict(title='Validation Set proportion'),
yaxis=dict(title='Accuracy'),
margin=dict(b=100, t=100, l=0, r=0),
legend=dict(x=1, y=1.01,xanchor='right', yanchor='bottom',
title='',
orientation='h', # Remember this as well.
bordercolor='black',
borderwidth=1
))
Example image

Mapping variable values to colors in gvisLineChart?

I'm looking for the equivalent of:
ggplot(df,aes(x=date,y=var1,**group=col1,colour=col1**))+geom_line()
in the googleVis package.
Anyone knows how to do this? I only found examples of differently colored lines if they are mapping different columns from the dataframe.
thanks!
#mtoto, I hope my answer here on ggplot2 equivalent of 'factorization or categorization' in googleVis in R can help. Have you taken a look?
Using roles you can specify specific styles for your data. It involves adding another column with the style detail. So if plotting varx, you need to add the column varx.style where you will set the colors.
I do not know ggplot well enough to know if this is the exact fit of what you want, but please take a look at my figures and links in that answer.

Cognos - Size of the axes in a graph

Do you know how it is possible, in a graph, to adjust the size of the Y-axis to correspond to the data?
Screenshot for example : http://hpics.li/296c96c
Thanks for your help ! :)
Click on the Y-axis line (not the 0-n)
Properties -> Axis Range
Relevant blog post with pictures
Thanks for your response.
It helps me to find how to adapt the Y-axis to the data, in my case where I use a repeater.
we have to uncheck the option "same range for all instances of the graph".
See the screenshot:
http://hpics.li/fb34043
See you :-)

Querying z-values in cranvas qtime

I need to interactively explore profiles of of a y variable (reflectance) against an x variable (wavelength) in plots that are very similar to time plots. My problem is that
besides checking the exact x,y values, I also would need to get the channel (that is,
a third variable). I do not see a way of doing this with qplot(), is it?
Actually, if using the "?" key with qscatter() you get x,y and ID, so we are not that far...
Thanks,
Agus
The current solution is through linking plots, such as:
qtime(time=TimeIndx, y=ts, data=qnasa)
qscatter(ts, o3_tovs, data=qnasa)
Then brush some points, you will see highlights on both plots.
According to Xiaoyue, referring to something like
qtime(time=TimeIndx, y=ts, z=o3_tovs, data=qnasa)
(indicating that the plot is made by y vs x but the "tips note" would show the values for x,y,z)
"Currently we don't allow the user to add something to the label, but it is possible to change the setting later."
See
https://groups.google.com/forum/#!topic/cranvas/D4-uh98p95A
for more information

How to create Stacked ColumnCharts with different colors in Flex

I am trying to create a stacked column chart that will show three different values on a column with different colors. Please let me know how to achieve that.
Thanks,
AM
I answered a similar question here. And you may also be interested in a relevent follow up here.
To set the colors, you just need to set the stroke and fill properties on the series.

Resources