Match two trellis pages between two different graphs

霸气de小男生 提交于 2019-12-08 04:30:29

as @scsimon mentions, there's no native feature (nor API method, AFAIK) for this using a trellis. however, you can create a Property Control (I'd use a dropdown) in a Text Area, then use the same Document Property to your chart in a Limit By expression.

little more detail, assuming a data table like this:

A   B   CATEGORY
1   2   red
3   4   red
5   6   green
7   8   green
9   10  blue
11  12  blue
  1. add a Text Area to the page and edit its contents
  2. add a Property Control
  3. click New to create a Document Property, give it a type String and a name category
  4. change Set property value through to Unique values in column and choose the "category" column and click OK
  5. save the Text Area contents
  6. in your Pie Chart's Properties dialog, go to the Data page and look for Limit data using expression. click Edit
  7. set the expression to: [CATEGORY] = "${category}" (don't forget the quotes or the Document Property won't be treated as a string and you'll get an error)
  8. repeat steps 6 & 7 for your other chart

As @scsimon mentioned in the comments, it seems to be impossible. I found a way to have a similar representation though without using trellis visualization, by using text arena

I created a list box that contains the 5 columns I want to visualize, and then I select this list box as the vertical axis variable of the bar chart and the sector size of the pie chart

Then, by clicking on my list box, I can have a synchronized Pie chart and Bar chart (a bit different from what I expected but it also has some advantages like a multiple scale since a new graph is generated independently of the other variables)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!