Kirill Simonov avatar Kirill Simonov committed 53e70d4 Merge


Comments (0)

Files changed (1)

    .. sourcecode:: html
-      <h3>Select School</h3>
-      <select id="school"
-              data-source="/school{code, name}"/>
-      <div class="chart"
-           data-source="/program{title, count(student)}
-                        ?school=$school&count(student)>0"
-           data-display="chart"
-           data-chart-title="Percent of Students by Program"/>
+      <h3>Select a School</h3>
+      <select id="school" data-htsql="/school{code, name}"></select>
+      <div style="width: 500px; height: 350px;"
+          data-htsql="/program{title, count(student)}
+                      ?school=$school&count(student)>0"
+          data-type="pie"
+          data-widget="chart"
+          data-title="Percent of Students by Program"></div>
       <p>Filter by name: <input id="department_name"/></p>
-      <table id="department"
-             data-hide-first-column="yes"
-             data-source="/department{code, name,}
-                          ?school=$school&name~$department_name"/>
+      <table id="department" data-hide-column-0="yes"
+          data-htsql="/department{code, name,}
+                      ?school=$school&name~$department_name">
+      </table>
           The selected department:
-          <em data-source="/department{name}?code=$department"/>
-          <br/>
-          The number of courses in selected department:
-          <strong data-source="/department{count(course)}
-                               ?code=$department"/>
+          <em data-htsql="/department{name}?code=$department"></em> <br/>
+          The number of courses in the selected department:
+          <strong data-htsql="/department{count(course)}?code=$department">
+          </strong>
-      <table id="course"
-             data-source="/course?department=$department"/>
+      <table id="course" data-htsql="/course?department=$department">
+      </table>
    .. image:: img/htraf_screenshot.png
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.