Changeset 714394
- Timestamp:
- 05/17/2013 02:00:05 PM (13 years ago)
- Location:
- ipu-chart
- Files:
-
- 1 added
- 6 edited
- 1 copied
-
assets/screenshot-11.png (added)
-
tags/0.6.1 (copied) (copied from ipu-chart/trunk)
-
tags/0.6.1/ipu-chart.php (modified) (4 diffs)
-
tags/0.6.1/js/ipu-chart.js (modified) (5 diffs)
-
tags/0.6.1/readme.txt (modified) (7 diffs)
-
trunk/ipu-chart.php (modified) (4 diffs)
-
trunk/js/ipu-chart.js (modified) (5 diffs)
-
trunk/readme.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ipu-chart/tags/0.6.1/ipu-chart.php
r711361 r714394 2 2 /* 3 3 Plugin Name: IPU-Chart 4 Plugin URI: https://www.ipublia.com/support/ docs/ipu-chart-for-wordpress-user-guide/5 Description: Creates D3/SVG based charts out of your comma- or tab-separated data. Currently supports bar, pie, donut, line, scatter, bubble and world map charts. 6 Author: ipublia, Thomas Müller Flury7 Version: 0.6 4 Plugin URI: https://www.ipublia.com/support/ipu-chart-editor-online/ 5 Description: Creates D3/SVG based charts out of your comma- or tab-separated data. Currently supports bar, pie, donut, line, scatter, bubble and world map charts. 6 Author: Thomas Müller Flury, ipublia 7 Version: 0.6.1 8 8 Author URI: https://www.ipublia.com/author/thmufl/ 9 9 Text Domain: ipuchart … … 22 22 function ipu_csv_func($atts, $content = null) { 23 23 extract(shortcode_atts(array( 24 'id' => ' csv' . rand(0, 999999),24 'id' => 'd' . rand(0, 999999), 25 25 ), $atts)); 26 26 … … 35 35 function ipu_tsv_func($atts, $content = null) { 36 36 extract(shortcode_atts(array( 37 'id' => ' tsv' . rand(0, 999999),37 'id' => 'd' . rand(0, 999999), 38 38 ), $atts)); 39 39 … … 48 48 function ipu_chart_func($atts) { 49 49 extract(shortcode_atts(array( 50 'id' => 'c hart' . rand(0, 999999),50 'id' => 'c' . rand(0, 999999), 51 51 'csv' => '', 52 52 'tsv' => '', -
ipu-chart/tags/0.6.1/js/ipu-chart.js
r711361 r714394 115 115 } 116 116 117 function createFigureElement(id, title, description, style, version) { 118 var figure = d3.select('#' + id); 117 function createFigureElement(id, title, description, style, version, debug) { 118 119 if(debug) console.log("start createFigureElement(id=" + id + ")"); 120 121 var figure = d3.select('#' + id); 122 123 if(debug) { console.log("createFigureElement: selected figure is:"); console.log(figure); } 124 119 125 figure.attr("style", style); 120 126 121 127 var svg = figure.append("svg"); 122 123 128 var meta = svg.append("g") 124 129 .attr("class", "meta"); … … 128 133 meta.append("a") 129 134 .attr("href", "https://www.ipublia.com/products/ipu-chart-svg-chart-library/") 130 .text(version + " (IPU 448032107)");135 .text(version + " (IPUC418032107)"); 131 136 132 137 figure.append("figcaption").text(title); … … 198 203 figure.append("caption").text(title); 199 204 } else { 200 figure = createFigureElement(id, title, description, style, version );205 figure = createFigureElement(id, title, description, style, version, debug); 201 206 if(!svgSupport) return renderNoSvgSupport(figure, img); 202 207 createTooltip(); … … 208 213 color = toArray(color); 209 214 animate = toArray(animate); 210 215 211 216 if(animate[0] == "slow") animate = ["5000", "linear"]; 212 217 else if(animate[0] == "medium") animate = ["2000", "linear"]; … … 264 269 265 270 if(type.toLowerCase().trim() == "bar") 266 renderBar(figure, data, category , value, format, color, sort, interpolate, animate, debug);271 renderBar(figure, data, category[0], value[0], format, color, sort, interpolate, animate, debug); 267 272 268 273 else if(type.toLowerCase().trim() == "bar.horizontal") 269 renderBarHorizontal(figure, data, category , value, format, color, sort, interpolate, animate, debug);274 renderBarHorizontal(figure, data, category[0], value[0], format, color, sort, interpolate, animate, debug); 270 275 271 276 else if(type.toLowerCase().trim() == "pie") 272 renderPie(figure, data, category , value, format, color, sort, interpolate, animate, debug);277 renderPie(figure, data, category[0], value[0], format, color, sort, interpolate, animate, debug); 273 278 274 279 else if(type.toLowerCase().trim() == "donut") 275 renderDonut(figure, data, category , value, format, color, sort, interpolate, animate, debug);280 renderDonut(figure, data, category[0], value[0], format, color, sort, interpolate, animate, debug); 276 281 277 282 else if(type.toLowerCase().trim() == "line") -
ipu-chart/tags/0.6.1/readme.txt
r711361 r714394 1 1 === Plugin Name === 2 2 Contributors: thmufl 3 Tags: chart, bar chart, pie chart, line chart, donut chart, scatter chart, bubble chart, world map, map, countries, animation, quotes, diagram, csv, tsv, excel, numbers, svg, d3, d3js3 Tags: chart, chart editor, bar chart, pie chart, line chart, donut chart, scatter chart, bubble chart, world map, map, countries, animation, quotes, diagram, csv, tsv, excel, numbers, svg, d3, d3js 4 4 Requires at least: 3.0.1 5 5 Tested up to: 3.5.1 6 Stable tag: 0.6 6 Stable tag: 0.6.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 Creates SVG based, animated bar, pie, donut, line, scatter, bubble and world map charts out of your spreadsheet data. A powerful, easy to use shortcode. 10 Creates SVG based, animated bar, pie, donut, line, scatter, bubble and world map charts out of your spreadsheet data. A powerful, easy to use shortcode. And even easier with the free [IPU-Chart Editor Online](https://www.ipublia.com/support/ipu-chart-editor-online/)! 11 11 12 12 == Description == … … 15 15 16 16 The plugin allows you to load the data to display as a chart from a remote service that delivers csv or tsv formatted data. You can also export you data from favorite spreadsheet application (Excel, Numbers, Open Office) and display it as a chart in your blog or page. 17 18 To create complex chart definitions and preview the immedialely use the free [IPU-Chart Editor Online](https://www.ipublia.com/support/ipu-chart-editor-online/) service. 17 19 18 20 IPU-Chart is based on [SVG](http://www.w3.org/TR/SVG/) and [D3](http://d3js.org/). It works perfectly on large computer screens as well as on tablets and smaller mobile screens. For browsers that do not support SVG an alternative image can be set. … … 25 27 * Enter the csv/tsv data directy in you blog or page 26 28 * Load the csv/tsv data from a remote location 29 * [IPU-Chart Editor Online](https://www.ipublia.com/support/ipu-chart-editor-online/) to easily define the shortcodes. 27 30 * Create multiple views of the data 28 31 * Style the charts with css … … 35 38 = Usage = 36 39 37 *Read our blog [Create a World Map in WordPress](https://www.ipublia.com/create-a-world-map-in-wordpress/ "Create a World Map in WordPress") for a short introduction of the new world map chart.* 38 39 First, define your data. You can create it immediately in WordPress or copy and paste it from an export of your favourite spreadsheet application. Example: 40 First, define your data. You can create it immediately in WordPress, use our [IPU-Chart Editor Online](https://www.ipublia.com/support/ipu-chart-editor-online/) service or copy and paste it from an export of your favourite spreadsheet application. Example: 40 41 41 42 <pre> … … 115 116 9. World map chart 116 117 10. Bubble chart 118 11. IPU-Chart Editor 117 119 118 120 == Changelog == … … 163 165 * Bubble charts added 164 166 167 = 0.6.1 = 168 * Minor update for interoperability with the editor. 169 165 170 == Upgrade Notice == 166 171 … … 198 203 * Support for animated, multi-series bubble charts added 199 204 200 205 = 0.6.1 = 206 * Minor update for the interoperability with the IPU-Chart Editor 207 208 -
ipu-chart/trunk/ipu-chart.php
r711361 r714394 2 2 /* 3 3 Plugin Name: IPU-Chart 4 Plugin URI: https://www.ipublia.com/support/ docs/ipu-chart-for-wordpress-user-guide/5 Description: Creates D3/SVG based charts out of your comma- or tab-separated data. Currently supports bar, pie, donut, line, scatter, bubble and world map charts. 6 Author: ipublia, Thomas Müller Flury7 Version: 0.6 4 Plugin URI: https://www.ipublia.com/support/ipu-chart-editor-online/ 5 Description: Creates D3/SVG based charts out of your comma- or tab-separated data. Currently supports bar, pie, donut, line, scatter, bubble and world map charts. 6 Author: Thomas Müller Flury, ipublia 7 Version: 0.6.1 8 8 Author URI: https://www.ipublia.com/author/thmufl/ 9 9 Text Domain: ipuchart … … 22 22 function ipu_csv_func($atts, $content = null) { 23 23 extract(shortcode_atts(array( 24 'id' => ' csv' . rand(0, 999999),24 'id' => 'd' . rand(0, 999999), 25 25 ), $atts)); 26 26 … … 35 35 function ipu_tsv_func($atts, $content = null) { 36 36 extract(shortcode_atts(array( 37 'id' => ' tsv' . rand(0, 999999),37 'id' => 'd' . rand(0, 999999), 38 38 ), $atts)); 39 39 … … 48 48 function ipu_chart_func($atts) { 49 49 extract(shortcode_atts(array( 50 'id' => 'c hart' . rand(0, 999999),50 'id' => 'c' . rand(0, 999999), 51 51 'csv' => '', 52 52 'tsv' => '', -
ipu-chart/trunk/js/ipu-chart.js
r711361 r714394 115 115 } 116 116 117 function createFigureElement(id, title, description, style, version) { 118 var figure = d3.select('#' + id); 117 function createFigureElement(id, title, description, style, version, debug) { 118 119 if(debug) console.log("start createFigureElement(id=" + id + ")"); 120 121 var figure = d3.select('#' + id); 122 123 if(debug) { console.log("createFigureElement: selected figure is:"); console.log(figure); } 124 119 125 figure.attr("style", style); 120 126 121 127 var svg = figure.append("svg"); 122 123 128 var meta = svg.append("g") 124 129 .attr("class", "meta"); … … 128 133 meta.append("a") 129 134 .attr("href", "https://www.ipublia.com/products/ipu-chart-svg-chart-library/") 130 .text(version + " (IPU 448032107)");135 .text(version + " (IPUC418032107)"); 131 136 132 137 figure.append("figcaption").text(title); … … 198 203 figure.append("caption").text(title); 199 204 } else { 200 figure = createFigureElement(id, title, description, style, version );205 figure = createFigureElement(id, title, description, style, version, debug); 201 206 if(!svgSupport) return renderNoSvgSupport(figure, img); 202 207 createTooltip(); … … 208 213 color = toArray(color); 209 214 animate = toArray(animate); 210 215 211 216 if(animate[0] == "slow") animate = ["5000", "linear"]; 212 217 else if(animate[0] == "medium") animate = ["2000", "linear"]; … … 264 269 265 270 if(type.toLowerCase().trim() == "bar") 266 renderBar(figure, data, category , value, format, color, sort, interpolate, animate, debug);271 renderBar(figure, data, category[0], value[0], format, color, sort, interpolate, animate, debug); 267 272 268 273 else if(type.toLowerCase().trim() == "bar.horizontal") 269 renderBarHorizontal(figure, data, category , value, format, color, sort, interpolate, animate, debug);274 renderBarHorizontal(figure, data, category[0], value[0], format, color, sort, interpolate, animate, debug); 270 275 271 276 else if(type.toLowerCase().trim() == "pie") 272 renderPie(figure, data, category , value, format, color, sort, interpolate, animate, debug);277 renderPie(figure, data, category[0], value[0], format, color, sort, interpolate, animate, debug); 273 278 274 279 else if(type.toLowerCase().trim() == "donut") 275 renderDonut(figure, data, category , value, format, color, sort, interpolate, animate, debug);280 renderDonut(figure, data, category[0], value[0], format, color, sort, interpolate, animate, debug); 276 281 277 282 else if(type.toLowerCase().trim() == "line") -
ipu-chart/trunk/readme.txt
r711361 r714394 1 1 === Plugin Name === 2 2 Contributors: thmufl 3 Tags: chart, bar chart, pie chart, line chart, donut chart, scatter chart, bubble chart, world map, map, countries, animation, quotes, diagram, csv, tsv, excel, numbers, svg, d3, d3js3 Tags: chart, chart editor, bar chart, pie chart, line chart, donut chart, scatter chart, bubble chart, world map, map, countries, animation, quotes, diagram, csv, tsv, excel, numbers, svg, d3, d3js 4 4 Requires at least: 3.0.1 5 5 Tested up to: 3.5.1 6 Stable tag: 0.6 6 Stable tag: 0.6.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 Creates SVG based, animated bar, pie, donut, line, scatter, bubble and world map charts out of your spreadsheet data. A powerful, easy to use shortcode. 10 Creates SVG based, animated bar, pie, donut, line, scatter, bubble and world map charts out of your spreadsheet data. A powerful, easy to use shortcode. And even easier with the free [IPU-Chart Editor Online](https://www.ipublia.com/support/ipu-chart-editor-online/)! 11 11 12 12 == Description == … … 15 15 16 16 The plugin allows you to load the data to display as a chart from a remote service that delivers csv or tsv formatted data. You can also export you data from favorite spreadsheet application (Excel, Numbers, Open Office) and display it as a chart in your blog or page. 17 18 To create complex chart definitions and preview the immedialely use the free [IPU-Chart Editor Online](https://www.ipublia.com/support/ipu-chart-editor-online/) service. 17 19 18 20 IPU-Chart is based on [SVG](http://www.w3.org/TR/SVG/) and [D3](http://d3js.org/). It works perfectly on large computer screens as well as on tablets and smaller mobile screens. For browsers that do not support SVG an alternative image can be set. … … 25 27 * Enter the csv/tsv data directy in you blog or page 26 28 * Load the csv/tsv data from a remote location 29 * [IPU-Chart Editor Online](https://www.ipublia.com/support/ipu-chart-editor-online/) to easily define the shortcodes. 27 30 * Create multiple views of the data 28 31 * Style the charts with css … … 35 38 = Usage = 36 39 37 *Read our blog [Create a World Map in WordPress](https://www.ipublia.com/create-a-world-map-in-wordpress/ "Create a World Map in WordPress") for a short introduction of the new world map chart.* 38 39 First, define your data. You can create it immediately in WordPress or copy and paste it from an export of your favourite spreadsheet application. Example: 40 First, define your data. You can create it immediately in WordPress, use our [IPU-Chart Editor Online](https://www.ipublia.com/support/ipu-chart-editor-online/) service or copy and paste it from an export of your favourite spreadsheet application. Example: 40 41 41 42 <pre> … … 115 116 9. World map chart 116 117 10. Bubble chart 118 11. IPU-Chart Editor 117 119 118 120 == Changelog == … … 163 165 * Bubble charts added 164 166 167 = 0.6.1 = 168 * Minor update for interoperability with the editor. 169 165 170 == Upgrade Notice == 166 171 … … 198 203 * Support for animated, multi-series bubble charts added 199 204 200 205 = 0.6.1 = 206 * Minor update for the interoperability with the IPU-Chart Editor 207 208
Note: See TracChangeset
for help on using the changeset viewer.