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

编程入门 行业动态 更新时间:2024-10-10 08:23:35
本文介绍了匹配两个不同图形之间的两个网格页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

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

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

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

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

  • 在页面上添加文本区域并编辑其内容
  • 添加财产控制
  • 单击新建以创建文档财产,为其指定字符串类型和名称类别
  • 将设置属性值通过设置为列中的唯一值,然后选择类别列,然后点击确定
  • 将文本区域内容
  • 保存到 strong>饼图的属性对话框中,转到数据页面,然后使用表达式查找限制数据。点击编辑
  • 将表达式设置为: [CATEGORY] = $ {category} (don '不要忘记引号,否则Document Property将不会被视为字符串,并且会出现错误)
  • 重复步骤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

  • add a Text Area to the page and edit its contents
  • add a Property Control
  • click New to create a Document Property, give it a type String and a name category
  • change Set property value through to Unique values in column and choose the "category" column and click OK
  • save the Text Area contents
  • in your Pie Chart's Properties dialog, go to the Data page and look for Limit data using expression. click Edit
  • 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)
  • repeat steps 6 & 7 for your other chart
  • 更多推荐

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

    本文发布于:2023-05-31 10:28:51,感谢您对本站的认可!
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:两个   网格   图形   页面

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!