Skip to content

Commit

Permalink
Add remaining configuration files for nvd3 visualizations
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Feb 11, 2018
1 parent d871196 commit 5e8bd49
Show file tree
Hide file tree
Showing 16 changed files with 285 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE visualization SYSTEM "../../visualization.dtd">
<visualization name="Histogram (NVD3)" regular="True">
<macros>
<import>../../nvd3_bar/config/nvd3_shared.xml</import>
</macros>
<description>Uses the R-based `charts` tool to derive a histogram and displays it as regular or stacked bar diagram using NVD3 hosted at http://www.nvd3.org.</description>
<expand macro="data"/>
<entry_point entry_point_type="chart" src="static/nvd3bar.js"></entry_point>
<specs>
<expand macro="specs"/>
<use_panels>no</use_panels>
</specs>
<groups>
<expand macro="groups"/>
<y>
<label>Observations</label>
<type>data_column</type>
<is_numeric>true</is_numeric>
</y>
</groups>
<settings>
<expand macro="settings"/>
</settings>
</visualization>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE visualization SYSTEM "../../visualization.dtd">
<visualization name="Histogram Discrete (NVD3)" regular="True">
<macros>
<import>../../nvd3_bar/config/nvd3_shared.xml</import>
</macros>
<description>Uses the R-based `charts` tool to derive a histogram for discrete data e.g. text labels. The result is displayed as regular or stacked bar diagram using NVD3 hosted at http://www.nvd3.org.</description>
<expand macro="data"/>
<entry_point entry_point_type="chart" src="static/nvd3bar.js"></entry_point>
<specs>
<expand macro="specs"/>
<use_panels>no</use_panels>
</specs>
<groups>
<expand macro="groups"/>
<x>
<label>Observations</label>
<type>data_column</type>
<is_numeric>true</is_numeric>
</x>
</groups>
<settings>
<expand macro="settings"/>
</settings>
</visualization>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions config/plugins/visualizations/nvd3_line/config/nvd3_line.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE visualization SYSTEM "../../visualization.dtd">
<visualization name="Line chart (NVD3)" regular="True">
<macros>
<import>../../nvd3_bar/config/nvd3_shared.xml</import>
</macros>
<description>Renders a line chart using NVD3 hosted at http://www.nvd3.org.</description>
<expand macro="data"/>
<entry_point entry_point_type="chart" src="static/nvd3bar.js"></entry_point>
<specs>
<expand macro="specs"/>
<zoomable>true</zoomable>
</specs>
<groups>
<expand macro="groups"/>
<expand macro="groups_bar"/>
</groups>
<settings>
<expand macro="settings"/>
</settings>
</visualization>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE visualization SYSTEM "../../visualization.dtd">
<visualization name="Line with focus (NVD3)" regular="True">
<macros>
<import>../../nvd3_bar/config/nvd3_shared.xml</import>
</macros>
<description>Renders a line chart with focus using NVD3 hosted at http://www.nvd3.org.</description>
<expand macro="data"/>
<entry_point entry_point_type="chart" src="static/nvd3bar.js"></entry_point>
<specs>
<expand macro="specs"/>
<zoomable>native</zoomable>
</specs>
<groups>
<expand macro="groups"/>
<expand macro="groups_bar"/>
</groups>
<settings>
<expand macro="settings"/>
</settings>
</visualization>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
130 changes: 130 additions & 0 deletions config/plugins/visualizations/nvd3_pie/config/nvd3_pie.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE visualization SYSTEM "../../visualization.dtd">
<visualization name="Pie chart (NVD3)" regular="True">
<macros>
<import>../../nvd3_bar/config/nvd3_shared.xml</import>
</macros>
<description>Renders a pie chart using NVD3 hosted at http://www.nvd3.org.</description>
<expand macro="data"/>
<entry_point entry_point_type="chart" src="static/nvd3bar.js"></entry_point>
<specs>
<expand macro="specs"/>
<use_panels>yes</use_panels>
</specs>
<groups>
<expand macro="groups"/>
<label>
<label>Labels</label>
<type>data_column</type>
<is_label>true</is_label>
<is_auto>true</is_auto>
</label>
<y>
<label>Values</label>
<type>data_column</type>
<is_numeric>true</is_numeric>
</y>
</groups>
<settings>
<donut_ratio>
<label>Donut ratio</label>
<help>Determine how large the donut hole will be.</help>
<type>float</type>
<value>0.5</value>
<max>1</max>
<min>0</min>
</donut_ratio>
<donut_ratio>
<label>Show legend</label>
<help>Would you like to add a legend?</help>
<type>select</type>
<display>radiobutton</display>
<value>false</value>
<data>
<data>
<label>Yes</label>
<value>true</value>
</data>
<data>
<label>No</label>
<value>false</value>
</data>
</data>
</donut_ratio>
<label_type>
<type>conditional</type>
<test_param>
<name>type</name>
<label>Donut label</label>
<type>select</type>
<value>percent</value>
<help>What would you like to show for each slice?</help>
<data>
<data>
<value>hide</value>
<label>-- Nothing --</label>
</data>
<data>
<value>key</value>
<label>Label column</label>
</data>
<data>
<value>percent</value>
<label>Percentage</label>
</data>
</data>
</test_param>
<cases>
<cases>
<value>hide</value>
</cases>
<cases>
<value>key</value>
<inputs>
<inputs>
<name>label_outside</name>
<label>Show outside</label>
<help>Would you like to show labels outside the donut?</help>
<type>select</type>
<display>radiobutton</display>
<value>true</value>
<data>
<data>
<label>Yes</label>
<value>true</value>
</data>
<data>
<label>No</label>
<value>false</value>
</data>
</data>
</inputs>
</inputs>
</cases>
<cases>
<value>percent</value>
<inputs>
<inputs>
<name>label_outside</name>
<label>Show outside</label>
<help>Would you like to show labels outside the donut?</help>
<type>select</type>
<display>radiobutton</display>
<value>true</value>
<data>
<data>
<label>Yes</label>
<value>true</value>
</data>
<data>
<label>No</label>
<value>false</value>
</data>
</data>
</inputs>
</inputs>
</cases>
</cases>
</label_type>
</settings>
</visualization>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE visualization SYSTEM "../../visualization.dtd">
<visualization name="Stacked area (NVD3)" regular="True">
<macros>
<import>../../nvd3_bar/config/nvd3_shared.xml</import>
</macros>
<description>Renders a stacked area using NVD3 hosted at http://www.nvd3.org.</description>
<expand macro="data"/>
<entry_point entry_point_type="chart" src="static/nvd3bar.js"></entry_point>
<specs>
<expand macro="specs"/>
<use_panels>no</use_panels>
</specs>
<groups>
<expand macro="groups"/>
<expand macro="groups_bar"/>
</groups>
<settings>
<expand macro="settings"/>
</settings>
</visualization>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE visualization SYSTEM "../../visualization.dtd">
<visualization name="Expanded (NVD3)" regular="True">
<macros>
<import>../../nvd3_bar/config/nvd3_shared.xml</import>
</macros>
<description>Renders an expanded stacked area using NVD3 hosted at http://www.nvd3.org.</description>
<expand macro="data"/>
<entry_point entry_point_type="chart" src="static/nvd3bar.js"></entry_point>
<specs>
<expand macro="specs"/>
<use_panels>no</use_panels>
</specs>
<groups>
<expand macro="groups"/>
<expand macro="groups_bar"/>
</groups>
<settings>
<expand macro="settings"/>
</settings>
</visualization>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE visualization SYSTEM "../../visualization.dtd">
<visualization name="Stream (NVD3)" regular="True">
<macros>
<import>../../nvd3_bar/config/nvd3_shared.xml</import>
</macros>
<description>Renders a stream chart using NVD3 hosted at http://www.nvd3.org.</description>
<expand macro="data"/>
<entry_point entry_point_type="chart" src="static/nvd3bar.js"></entry_point>
<specs>
<expand macro="specs"/>
<use_panels>no</use_panels>
</specs>
<groups>
<expand macro="groups"/>
<expand macro="groups_bar"/>
</groups>
<settings>
<expand macro="settings"/>
</settings>
</visualization>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5e8bd49

Please sign in to comment.