In data analysis scenarios, you may need to pass parameters to a page so that the page can filter component data based on the passed parameters. For example, in a link redirection scenario, when you click the "channel name" field (such as "E-commerce") on the "channel analysis" page, you expect to be redirected to the "sales performance" page, and the "sales performance" page automatically filters out the data where the department field equals "E-commerce", rather than displaying data for all channels.
By setting page parameters, you can specify the parameters that can be assigned with values on the current page and the components affected by these parameters.
To use parameters, you can set them as follows:
1. Go to the editor. Click the parameter setting icon at the top of the page to go to the parameter setting pop-up layer. 2. In the pop-up layer of page parameter settings, click Add New to add one parameter.
3. Set the basic information of the parameter.
In the basic settings, set the parameter name and parameter type.
Parameter name: Only English letters or "_" are supported.
Parameter type: Character and time type parameters are supported. The parameter type determines the available input parameter data types during parameter assignment.
Note:
Modifying the type of active parameters will reset the associated chart settings.
4. Set parameter linkage.
In the association settings, you can set the chart affected by the page parameter.
If this parameter only serves as a value "transfer", chart linkage is not needed. In this case, you do not need to select any chart and can directly save the settings.
Chart linkage:
Select the target chart, then select "Field" to pass the page parameter value to the corresponding field of the chart as filtering conditions. The parameter field type should correspond to the type of field. You cannot select a field of a different type from the parameter.
Select the target chart, then select "Table parameter" to pass the page parameter value to the data table parameter.
Variable linkage: Like chart linkage, it supports data filtering for quick analysis type of variables.
5. Release the page to make the parameter take effect.
Click save in the pop-up layer, then click publish on the page. When the following pop-up layer appears, the parameter takes effect.