且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

匹配两个不同图形之间的两个网格页面

更新时间:2022-12-28 10:26:08

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