Use buttons in QlikView to control the conversion chart type (for example, convert a bar chart to a vertical table)

Source: Internet
Author: User
In the QlikView, you can select certain configurations to easily convert chart types. You can select a chart to view details such as a bar chart, bar chart, or vertical chart. After selecting the options shown in FastTypeChange, A FastChange option is added in the upper-right corner of the chart to the following:

In the QlikView, you can select certain configurations to easily convert chart types. You can select a chart to view details such as a bar chart, bar chart, or vertical chart. After selecting the option shown in the Fast Type Change option, a Fast Change option is added to the upper right corner of the chart, which is changed to the following:

In the QlikView, you can select certain configurations to easily convert chart types. You can select a chart to view details such as a bar chart, bar chart, or vertical chart.


After selecting the option shown in the Fast Type Change option, a Fast Change option is added to the upper right corner of the chart, which is changed to the following:

Because In Caption is selected for the Preferred Icon In the lower right corner of the first Chart, the button for controlling Chart Type Fast Change is In the title bar. If you select the first In Chart, the effect is as follows:

Due to factors such as the overall layout of the Dashboard, the customer will feel that it is better to use separate buttons to control the conversion of chart types. So start the button,

Click "CREATE"> "Actions"> "Edit Module" and enter the following code:

Sub SetChartTypeSet chart = ActiveDocument.GetSheetObject("CH06")intObjectType = chart.GetObjectTypeif intObjectType = 15 Thenchart.SetChartType 2elsechart.SetChartType 4end ifEnd Sub

As shown in:

Click "OK" and "OK". Note that the method Name in "Micro Name" must be the same as the method Name you created. Click FastTypeChange below to convert the online and vertical tables.

Click the button as follows:

When you have time to paste the code of various chart types from Google, you can use the button to control the conversion between different chart types.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.