<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Smartchart开发手册</title>
    <link>https://help.smartchart.cn/en/docs/5.Parameters/</link>
    <description>Recent content on Smartchart开发手册</description>
    <generator>Hugo -- gohugo.io</generator><atom:link href="https://help.smartchart.cn/en/docs/5.Parameters/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title></title>
      <link>https://help.smartchart.cn/en/docs/5.Parameters/ParameterWriting/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://help.smartchart.cn/en/docs/5.Parameters/ParameterWriting/</guid>
      <description>Introduction # SmartChart&amp;rsquo;s parameter mechanism is the core of chart linkage, filters, and data permissions. By embedding &amp;ldquo;magic comment&amp;rdquo; syntax in SQL, you can dynamically control query conditions without modifying SQL structure.
Use Cases # Chart linkage effects Data service API development Row-level data permission control Magic Syntax Quick Reference # Syntax Description Example $param_name Parameter placeholder $city → replaced with passed value /* ... $param_name ... */ Conditional code block Active when param exists, ignored when not -- Line ignore marker Ignores entire line after $param__value Value match switch $type__1 means active when type=1 Basic Principles # 1.</description>
    </item>
    
    <item>
      <title></title>
      <link>https://help.smartchart.cn/en/docs/5.Parameters/ChartLinkageDrill/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://help.smartchart.cn/en/docs/5.Parameters/ChartLinkageDrill/</guid>
      <description>Introduction # Chart linkage is the most common interactive feature in SmartChart: click one chart to auto-refresh others. Implemented via dataset &amp;ldquo;linkage settings&amp;rdquo; or by calling ds_setParam + ds_refresh in chart code.
Linkage Functions Quick Reference # Function Description ds_setParam(&#39;param_name&#39;, value) Set parameter value ds_refresh(index) Refresh specified dataset ds_param(&#39;param_name&#39;) Get passed parameter value del filter_param[&#39;param_name&#39;] Delete parameter (cancel linkage) Dataset Preparation # Write SQL in linked datasets using parameter syntax (see &amp;ldquo;Parameter Writing&amp;rdquo;): select .</description>
    </item>
    
    <item>
      <title></title>
      <link>https://help.smartchart.cn/en/docs/5.Parameters/FilterGuide/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://help.smartchart.cn/en/docs/5.Parameters/FilterGuide/</guid>
      <description>Introduction # Filters are the most common interactive components in dashboards. SmartChart auto-identifies filter components through special id naming convention (id_select__name__) and handles linkage logic.
Implementation Flow # Step Operation Description 1 Create dataset Write SQL to get filter options 2 Edit JS Generate &amp;lt;select&amp;gt; control with id=&amp;quot;id_select__name__&amp;quot; 3 Configure linkage Click title → set linked dataset index Standard Implementation # Create a filter list dataset:
select xxxx as city from tablename.</description>
    </item>
    
    <item>
      <title></title>
      <link>https://help.smartchart.cn/en/docs/5.Parameters/ComponentCustomLinkage/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://help.smartchart.cn/en/docs/5.Parameters/ComponentCustomLinkage/</guid>
      <description>Introduction # SmartChart has built-in single-select filters, but for multi-select, checkboxes, custom HTML controls and other personalized needs, you need to write some JS code. This chapter introduces how to customize complex filter linkage effects.
Custom Linkage Development Pattern # Step Operation Code 1 Generate HTML control dom__name__.innerHTML = ... 2 Bind event $(&#39;#id_btn&#39;).unbind(&#39;click&#39;).click(...) 3 Get control value $(&#39;#input_id&#39;).val() 4 Set parameter ds_setParam(&#39;param_name&#39;, value) 5 Refresh dataset ds_refresh(index) Example # Create a new chart component, write query:</description>
    </item>
    
  </channel>
</rss>
