匹配两个不同图形之间的两个网格页面 [英] Match two trellis pages between two different graphs

查看:110
本文介绍了匹配两个不同图形之间的两个网格页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在同一页面上有一个饼图和一个条形图,并带有网格页面。
它们都有5列作为网格,因此您可以通过向下滚动来查看5个不同的页面。



但是,我想在显示相同的页面两个图的时间相同。例如,假设我在饼图上,向下滚动一页-所以我的饼图在第2页上-我希望我的条形图也自动转到第2页上。



我尝试使用标记,但是尽管它有点链接了两个图形,但是它并不会自动更改网格页面



有人知道如何这样做吗?但是,您可以在文本区域中创建属性控件(我将使用下拉菜单),然后在Limit By表达式中对图表使用相同的文档属性。



略微更多,假设数据表如下:

  AB类别
1 2红色
3 4红色
5 6绿色
7 8绿色
9 10蓝色
11 12蓝色




  1. 在页面上添加文本区域并编辑其内容

  2. 添加财产控制

  3. 单击新建以创建文档财产,为其指定字符串类型和名称类别

  4. 设置属性值通过设置为列中的唯一值,然后选择类别列,然后点击确定

  5. 文本区域内容
  6. 保存到 strong>饼图的属性对话框中,转到数据页面,然后使用表达式查找限制数据。点击编辑
  7. 将表达式设置为: [CATEGORY] = $ {category} (don '不要忘记引号,否则Document Property将不会被视为字符串,并且会出现错误)

  8. 重复步骤6&其他图表为7


I want to have on the same page a pie chart and a bar chart, with trellis pages. They both have 5 columns as trellis, so 5 different pages that you can visualize by scrolling down.

However, I would like to display the same pages at the same time for both graphs. For instance, let's imagine I'm on the pie chart, I scroll down one page - and so my pie chart is on page2 - I want my bar chart to automatically go to page 2 as well

I tried to use markings but although it links a bit the two graphs, it doesn't change the trellis pages automatically

Does anyone know how to do this ?

解决方案

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

这篇关于匹配两个不同图形之间的两个网格页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆