canvasxpress-cli 50.8.14 → 51.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cmds/io.js CHANGED
@@ -71,9 +71,14 @@ module.exports = async (obj) => {
71
71
  }
72
72
 
73
73
  var clbk = function () {
74
- var cx = CanvasXpress.instances[1];
74
+ var cx = CanvasXpress.instances[0];
75
+ var dt = arguments[0];
76
+ if (dt.config) {
77
+ dt.config.isNode = true;
78
+ }
79
+ cx.updateData(dt, false, false, JSON.parse(JSON.stringify(dt.config)));
75
80
  console.log(logStr);
76
- exec(cx, cx.target);
81
+ exec(cx, dt.renderTo);
77
82
  }
78
83
 
79
84
  var cx = CanvasXpress.instances[0];
@@ -95,9 +100,8 @@ module.exports = async (obj) => {
95
100
  case 'csv':
96
101
  case 'text':
97
102
  case 'png':
98
- cx.dataURL = obj.input;
99
- cx.remoteTransitionEffect = 'none';
100
- cx.getDataFromURLOrString(obj.target || cx.target, obj.config, false, false, clbk);
103
+ console.log(logStr);
104
+ CanvasXpress.loadRemoteData(obj.target || cx.target, obj.input, obj.config, false, clbk);
101
105
  return;
102
106
  }
103
107
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvasxpress-cli",
3
- "version": "50.8.14",
3
+ "version": "51.0.12",
4
4
  "license": {
5
5
  "type": "Dual licensing",
6
6
  "url": "https://www.canvasxpress.org/docs/license.html"
@@ -19,8 +19,7 @@
19
19
  }
20
20
  }, {
21
21
  "graphOrientation": "vertical",
22
- "graphType": "Bar",
23
- "title": "Simple Bar graph"
22
+ "graphType": "Bar"
24
23
  }
25
24
  );
26
25
  </script>