Permalink
Browse files

fix values of axis of test2 line charts

  • Loading branch information...
1 parent d6da130 commit 3bef31d893a2359045bc482c8a0f350bcfecdbef @diofeher diofeher committed Aug 1, 2011
Showing with 2 additions and 42 deletions.
  1. +2 −42 Source/Visualizations/LineChart.js
@@ -27,48 +27,8 @@ $jit.LineChart = new Class({
};
var opts = Options("Canvas", "Margin", "Node", "Edge", "Fx", "Tips", "NodeStyles",
"Events", "Navigation", "Controller", "Label");
- this.controller = config = this.config = $.merge(opts, opt, config);
- this.graphOptions = {
- 'klass': Complex,
- 'Node': {
- 'selected': false,
- 'exist': true,
- 'drawn': true
- }
- };
- this.delegate = new $jit.Scatter({
- //id of the visualization container
- injectInto: config.injectInto,
- //Native canvas text styling
- Label: {
- type: config.Label.type,
- size: config.Label.size,
- style: config.Label.style,
- color: config.Label.color
- },
- // with animation
- animate: config.animate,
- Events: {
- enable: config.Events.true,
- type: config.Events.type,
- },
- background: {
- type: config.background.type,
- CanvasStyles: {
- fillStyle: config.background.CanvasStyles.fillStyle,
- font: config.background.CanvasStyles.font
- },
- },
- Node: {
- overridable:true
- },
- Margin: {
- top: config.Margin.top,
- left: config.Margin.left,
- bottom: config.Margin.bottom,
- right: config.Margin.right
- }
- });
+ this.controller = this.config = $.merge(opts, opt, config);
+ this.delegate = new $jit.Scatter(this.config);
this.canvas = this.delegate.canvas;
},

0 comments on commit 3bef31d

Please sign in to comment.