The combo box of data visualization skills completes the dynamic chart

This article involves content:
1. Reverse selection
2. Use controls to complete dynamic charts

  1. Developer mode indicator
  2. Use combo box+offset+name to construct dynamic chart
  3. Use list box + auxiliary table to construct dynamic chart
  4. Use checkboxes to build dynamic charts

Insert picture description hereAs shown in the figure: the final effect is to choose different channels: Meituan, Ele.me, Nuomi, and smartchef. The table data and column chart on the right change synchronously, showing the dynamic chart. The
specific implementation steps are as follows :

  1. Add controls, the path is: Development Tools>>Insert>>Combo Box (Form Control)
  2. Set the control format, right-click the combo box>>Set Control Format>>Set the data source area and cell link separately
  3. The data source area is well understood. Select the red box area in the upper left corner. The cell link returns the row number of the value in the control. The
    Insert picture description hereInsert picture description hereindex function returns the value according to the row number in the selected area.
    This completes the selection of different in the combo box. The channel, the data displayed in the upper right corner and the inserted chart will also change simultaneously.
    Insert picture description hereTo summarize:
    1. Development tool: combo box control
    2. Add a data source setting link for the control, the link returns the line number of the value in the control
    3. The index function returns the value according to the selected area according to the line number
    4. Insert the chart
    5. Select different channels in the control, the chart will be linked

Guess you like

Origin blog.csdn.net/weixin_42961082/article/details/110440685