Giter Club home page Giter Club logo

zingchart-angularjs's Introduction

Quickstart Guide

Quickly add charts to your Angular application with our ZingChart component

This guide assumes some basic working knowledge of Angular and its Object Oriented interface.


An AngularJS directive for ZingChart to make your charts work dynamically with your data.

Check out our getting started page for examples! (http://zingchart.github.io/ZingChart-AngularJS)

Install

Install the directive using one of the following options:

Bower

bower install zingchart-angularjs

NPM

npm install zingchart-angularjs

Download

https://github.com/zingchart/ZingChart-AngularJS/archive/master.zip

Quick Start

Step 1 : Include the following dependencies into your HTML file

<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javascript" src="zingchart.min.js"></script>
<script type="text/javascript" src="zingchart-angularjs.js"></script>

Step 2 :Inject the directive into your application

angular.module('myApp', ['zingchart-angularjs']);

Step 3 : Insert the ZingChart-AngularJS directive into your application

As an element

<zingchart id="myChart" zc-json="myJson" zc-height=500 zc-width=600></zingchart>

or

As an attribute

<div zingchart id="myChart" zc-json="myJson" zc-height=500 zc-width=600></div>

Step 4 : Configure your chart through a scope variable

...
$scope.myJson = {
    type : 'line',
    series : [
      { values : [54,23,34,23,43] },
      { values : [10,15,16,20,40] }
    ]
};
...

##FAQ

How do I make my charts responsive?

Background

ZingChart internally attaches itself to the element that is specified in the render function, and continues to build children elements inside. In this Angular directives case, it will attach itself to either :

  • The <zingchart> if the element binding syntax is used
  • The <div> if the zingchart attribute binding syntax is used.

Since the element zingchart is not a valid HTML element, the browser will not assign css attributes to the element where as a div has inherit properties such as display:block.

How to

We reccomended using the attribute binding syntax on a div to automatically inherit the display:block CSS attribute. You will also need to apply a value of 100% to the zc-height and zc-width attributes.

Example :

<div zingchart id="chart-1" zc-width="100%" zc-height="100%"></div>

Options

The ZingChart Component takes the following attributes:

id [string] (optional)

The id for the DOM element for ZingChart to attach to.

Example:
<zingchart id="chart-1"></zingchart>

If no id is specified, the id will be autogenerated in the form of zingchart-auto-#


zc-values [array] (optional)

default : null

Either a single-dimensional or multi-dimensional array containing the values to be charted. Must be an Angular scope variable to bind to the directive Overrides the series values in the zc-render and zc-data objects.

This parameter simulates the values parameter in each series object in a ZingChart json.

//ZingChart json example
data:{
    series : [
        {'values' : [45,43,26]},
        {'values' : [0,1,5,3]}
    ]
}

The directive takes care of the work so you don't have to create this object

Example:
//.js
$scope.myData = [0,2,2,3,3,4];
$scope.myData2 = [[45,43,26],[0,1,5,3]];

//.html
<zingchart id="chart-1" zc-values="myData"></zingchart>
<zingchart id="chart-2" zc-values="myData2"></zingchart>

zc-json [object] (optional)

default : null

A ZingChart configuration object. Must be an Angular scope variable to bind to the directive. This is the same object you would use to configure a chart using zingchart.render.data. It is a pseudo-parent object of zc-values. The directive performs a deep-watch on the object for any changes, and stringifies the result as JSON to be rendered to ZingChart. More information : http://www.zingchart.com/docs/json-attributes-syntax/

Example:

http://jsfiddle.net/mschultz/tne7uuq0/

//.js
$scope.myValues = [[0,2,3,4],[9,6,4,3]];
$scope.myObj = {
  series:[
        {
            lineColor:"#900000",
            marker:{
                backgroundColor:"#dc3737",
                borderWidth:1,
                shadow:0,
                borderColor:"#f56b6b"
            }
        },
        {
            lineColor:"#efe634",
            marker:{
                backgroundColor:"#fff41f",
                borderWidth:1,
                shadow:0,
                borderColor:"#fdffc0"
            }
        },
    ]
};

//.html
<zingchart id="chart-1" zc-values="myValues" zc-json="myObj"></zingchart>

Note: You can add series values into this object like you normally would while using ZingChart. However if you define the directives zc-values parameter, those values will override the "values" inside of your zc-data object. This only works when the graphset parameter is ommitted from your zc-json object. It was a design decision to simplify zc-values to target the first object in a graphset, rather than allowing the users to specify which object to target. If you do need the graphset parameter in zingchart, then simply use the zc-json object alone.


_zc-license [string] (optional)

Sets the license key to remove the watermark from the chart.

Example:
//.html
<zingchart id="chart-1" zc-license="zcLicense"/zingchart>
//.js
app.controller('MainController', function ($scope) {
  $scope.zcLicense = ['<your license key here>'];

zc-render [object] (optional)

default : null

A ZingChart render object. This is the same object you would use to configure a chart using zingchart.render. You can change the render type, add events, and change other zingchart properties in here. Acts like a pseudo-parent of zc-values and zc-data. zc-render's properties will be overwritten if zc-values and zc-data are defined. More information : http://www.zingchart.com/docs/reference/zingchart-object/#zingchart__render

Note: This object will not be watched inside the directive. It is a one-time setup. While you can insert your data values into the render object directly, it is encouraged to use the zc-values attribute to enable dynamic updating.

Example:
//.js
$scope.myValues = [0,1,2];
$scope.myRender = {
    output :'canvas',
    events: {
        complete : function(p) {...}
    }
};

//.html
<zingchart id="chart-1" zc-render="myRender" zc-values="myValues"></zingchart>

zc-height [number] (optional)

default : 400

Will override the height inside of a zc-render object if defined. #####Example:

//.html
<zingchart id="chart-1" zc-height="500"></zingchart>

zc-width [number] (optional)

default : 600

Will override the width inside of a zc-render object if defined.

Example:
//.html
<zingchart id="chart-1" zc-width="500"></zingchart>

zc-type [string] (optional)

default : line

Will override the render type inside of a zc-render and zc-data object if defined.

Example:
//.html
<zingchart id="chart-1" zc-type="bar"/zingchart>

zingchart-angularjs's People

Contributors

andrewpatto avatar dannyjuergens avatar gnardecky avatar mike-schultz avatar nmastracchio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zingchart-angularjs's Issues

Boxplot graph results in resource not found error

When I tried to do a box plot with AngularJS, I got an error saying that /modules/zingchart-boxplot.min.js not found. (It was solved when I manually put a box plot.min.js in the above path).

Is it assumed that we need to manually configure the dependencies? Like setting up a /modules/zingchart-.min.js for some of the charts to be drawn?

I was able to do basic graphs such as a pie chart without encountering this problem.

Feature proposal

Hi,
What about the ability to:

1) Trigger the render manually

use case: trigger the render on a Waypoint callback

2) Associate a scale-x / key value to a series value

ex: $scope.zcValues = { key, value }
or: Use a zcKey attribute

EDIT: Not sure 2) is even possible with native zingchart

Uncaught TypeError: Cannot read property 'mouseout' of undefined

I'm using zingchart-angularjs in my app.
2 have 2 controller : DashboardController and CustomerController
I using $routeProvider to navigate.
when('/', {
controller: 'DashboardController',
templateUrl: 'dashboard.html'
})

    .when('/customer', {
        controller: 'CustomerController',
        templateUrl: 'customers.html'
    })

I'm using zingchart directive in dashboard.html.
Everything ok is I I work on DashboardController, hover, click on chart...But when I navigate to /customer, I have some console error like that:
VM31148:5656 Uncaught TypeError: Cannot read property 'mouseout' of undefinedd @ VM31148:5656
VM31148:5656 Uncaught TypeError: Cannot read property 'mouseover' of undefinedd @ VM31148:5656
VM31148:5656 Uncaught TypeError: Cannot read property 'mousemove' of undefinedd @ VM31148:5656
VM31148:5656 Uncaught TypeError: Cannot read property 'mouseout' of undefinedd @ VM31148:5656
VM31148:5656 Uncaught TypeError: Cannot read property 'mouseover' of undefinedd @ VM31148:5656
VM31148:5656 Uncaught TypeError: Cannot read property 'mousemove' of undefinedd @ VM31148:5656
VM31148:5656 Uncaught TypeError: Cannot read property 'mouseout' of undefinedd @ VM31148:5656
VM31148:5656 Uncaught TypeError: Cannot read property 'mouseover' of undefined.

And then i back to DashboardController, chart show as noRmal but I can't do anything.
I have debugged, the error came here : var n = ZC.A2.EVENTS[f]; with var n = ZC.A2.EVENTS is undefined.

Please help me :( I don't know why it happened.

Can't install via Bower

I get the following error:

bower zingchart-angularjs#*     cached git://github.com/zingchart/ZingChart-AngularJS.git#1.0.6
bower zingchart-angularjs#*   validate 1.0.6 against git://github.com/zingchart/ZingChart-AngularJS.git#*
bower zingchart#*           not-cached git://github.com/zingchart/ZingChart.git#*
bower zingchart#*              resolve git://github.com/zingchart/ZingChart.git#*
bower zingchart#*             download https://github.com/zingchart/ZingChart/archive/2.2.1.tar.gz
bower zingchart#*              extract archive.tar.gz
bower zingchart#*                EPERM EPERM: operation not permitted, open 'C:\Users\fenix\AppData\Local\Temp\DESKTOP-J
KT2N66-fenix\bower\zingchart-12224-Vs6heu\client\modules\zingchart-maps-usa_ks.min.js'

Stack trace:
Error: EPERM: operation not permitted, open 'C:\Users\fenix\AppData\Local\Temp\DESKTOP-JKT2N66-fenix\bower\zingchart-122
24-Vs6heu\client\modules\zingchart-maps-usa_ks.min.js'
    at Error (native)

Console trace:
Error
    at StandardRenderer.error (C:\Users\fenix\AppData\Roaming\npm\node_modules\bower\lib\renderers\StandardRenderer.js:8
2:37)
    at Logger.<anonymous> (C:\Users\fenix\AppData\Roaming\npm\node_modules\bower\bin\bower:110:22)
    at emitOne (events.js:77:13)
    at Logger.emit (events.js:169:7)
    at Logger.emit (C:\Users\fenix\AppData\Roaming\npm\node_modules\bower\node_modules\bower-logger\lib\Logger.js:29:39)

    at C:\Users\fenix\AppData\Roaming\npm\node_modules\bower\lib\commands\index.js:48:20
    at _rejected (C:\Users\fenix\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:844:24)
    at C:\Users\fenix\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:870:30
    at Promise.when (C:\Users\fenix\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:1122:31)
    at Promise.promise.promiseDispatch (C:\Users\fenix\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:788:41
)
System info:
Bower version: 1.6.6
Node version: 4.2.2
OS: Windows_NT 10.0.10240 x64

I also tried running cmd as administrator but same error, I don't understand it...

UPDATE:
I find out that my antivirus (Bitdefender) is detecting an infected file, here's what it says:

problem

zc-values not working

For a bubble chart I'm giving the following for zc-values and it's not over-riding series data in zc-json field.

HTML

JS :

$scope.bubbleValues= [
[1,0,1],
[2,0,1],
[5,0,1],
[6,0,1],
[3,0,1],
[7,0,1],
[8,0,1],
[1,0,1],
[2,0,1],
[4,0,1],
[5,0,1],
[6,0,1],
[8,0,1]
] ;
$scope.bubbleJson = {
"graphset": [
{
"type": "bubble",
"background-color":"#f5f5f5",
"title": {
"text": "Temporal analysis",
"margin-top": "7px",
"margin-left": "9px",
"background-color": "none",
"shadow": 0,
"text-align": "left",
"font-size": "15px",
"font-weight": "bold",
"font-color": "#444"
},
"scale-y": {
"values":"-1:1:1",
"line-width" : 0,
"tick" : {
"visible" : true
}
},
"scale-x": {
"visible" : false
},
"series" : [{
"values" : [
[1,0,1],
[2,0,1],
[5,0,1],
[6,0,1],
[3,0,1],
[7,0,1],
[8,0,1],
[1,0,1],
[2,0,1],
[4,0,1],
[5,0,1],
[6,0,1],
[8,0,1]
]
}]
}
]
};

Chart size as % of container not working

My goal is to scale chart to the 100% of container, and on browser re-sizing chart should scale.

I've tried width:100% and height:100% through zc-render options, through zc-json directly and directly as style options on the zingchart directive. None of them worked.

Secondly, I also observed I'm unable to use defaultsurl in zc-render object and my theme is not being picked up.

Webpack Zingchart-AngularJS integration

I've been using ZingChart-AngularJS for more than a year and always worked fine. Now I've moved my app from Broccoli to Webpack to bundle my files.
After installing ZingChart and ZingChart-AngularJS through npm and require() both packages in my main .js file, I cannot see the charts in the app rendered. There are no errors in the console, but if I inspect the chart element in the view, it seems it didn't executed the logic to render the values.

I was just wondering if I'm missing any special configuration for Webpack.

Thanks for time and help.

Spline algorithm

Just writing to let you know that I've been testing your charts.

The thing is that when I have an area graph and I set the aspect to spline and I have really big numeric information, the line gives the sensation to go below zero when going from a small number to a even smaller number (both above zero).

Please find attached an example of what I mean.

I hope we could figure this out.

screenshot from 2016-05-06 08 37 58

Problem with zingchart tree module

I am trying to use zingchart - tree module with angularjs (1.7)
i do the following to set a tree chart

Controller:

  private chartData: any = {
    type: 'tree',
    options: {
      link: {
        aspect: 'arc'
      },
      maxSize: 10,
      minSize: 4,
      node: {
        type: 'circle',
        borderWidth: '0px',
        hoverState: {
          borderAlpha: 1,
          borderColor: '#000',
          borderWidth: '2px'
        },
        label: {
          width: '100px'
        }
      },
      progression: 0,
      textAttr: 'name',
      valueAttr: 'value'
    },
    series: [
      {
        id: 'theworld',
        parent: '',
        name: 'The World'
      },
      {
        id: 'asia',
        parent: 'theworld',
        name: 'Asia'
      },
      {
        id: 'africa',
        parent: 'theworld',
        name: 'Africa'
      },
      {
        id: 'america',
        parent: 'theworld',
        name: 'America'
      },
      {
        id: 'europe',
        parent: 'theworld',
        name: 'Europe'
      }
    ]
  };

View:
<zingchart zc-json="$ctrl.chartData" zc-height=500 zc-width=600></zingchart>

App.js:
import 'zingchart';
import 'zingchart-angularjs';

angular.module('app', ['zingchart-angularjs'])

Problem1:
i can not set type to tree and get the following console error:
The resource from “http://localhost:9000/modules/zingchart-tree.min.js?v2.8.8” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).


Knowing that with line type it works:

  private myJson: any = {
    type : 'line',
    series : [
      { values : [54,23,34,23,43] },
      { values : [10,15,16,20,40] }
    ]
  };

<zingchart zc-json="$ctrl.myJson" zc-height=500 zc-width=600></zingchart>


Problem2:
On the other hand i can not access the zingchart object and get the following error
TypeError: "zingchart.render is not a function"

@mike-schultz your help would be much appricated

Clickable issue

Hi. I use ZingChart. I have a mixed chart with lines series and bubbles series on these lines and have a problem with click event. When I click in bubble's markers the event catches line's marker. Is it possible to disable line's series click?

Uncaught TypeError: Cannot read property 'appendChild'

When the controller destroys (change to another view) i get:

Uncaught TypeError: Cannot read property 'appendChild' of null
at Object.AAF (eval at (http://localhost:3000/bower_components/zingchart/client/zingchart.min.js:8:1), :1:70276)
at Object.HB (eval at (http://localhost:3000/bower_components/zingchart/client/zingchart.min.js:8:1), :1:69912)
at c.paint (eval at (http://localhost:3000/bower_components/zingchart/client/zingchart.min.js:8:1), :1:257198)
at c.f.(anonymous function) [as paint] (eval at (http://localhost:3000/bower_components/zingchart/client/zingchart.min.js:8:1), :1:17736)
at eval (eval at (http://localhost:3000/bower_components/zingchart/client/zingchart.min.js:8:1), :1:278976)
at c.OG (eval at (http://localhost:3000/bower_components/zingchart/client/zingchart.min.js:8:1), :1:249889)
at eval (eval at (http://localhost:3000/bower_components/zingchart/client/zingchart.min.js:8:1), :1:278950)
AAF @ VM4969:1
HB @ VM4969:1
paint @ VM4969:1
f.(anonymous function) @ VM4969:1
(anonymous) @ VM4969:1
OG @ VM4969:1
(anonymous) @ VM4969:1
setTimeout (async)
XS @ VM4969:1
(anonymous) @ VM4969:1
zingchart.A0G @ VM4969:1
JN @ VM4969:1
zingchart.AAD @ VM4969:1
zingchart.ABS @ VM4969:1
zingchart.exec @ VM4969:1
(anonymous) @ zingchart-angularjs.js:84
$digest @ angular.js:18210
$apply @ angular.js:18480
(anonymous) @ angular.js:14373
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3

The code of the controller is:



angular.module('videoPlatformApp-stats-controllers', [])
    .controller('DashBoardController', function ($scope, __env, $document, $http) {
        $scope.myJson = {
            type: 'line',
            backgroundColor: '#2C2C39',
            title: {
                text: 'Eventos',
                adjustLayout: true,
                fontColor: "#E3E3E5",
                marginTop: 7
            },
            legend: {
                align: 'center',
                verticalAlign: 'top',
                backgroundColor: 'none',
                borderWidth: 0,
                item: {
                    fontColor: '#E3E3E5',
                    cursor: 'hand'
                },
                marker: {
                    type: 'circle',
                    borderWidth: 0,
                    cursor: 'hand'
                }
            },
            plotarea: {
                margin: 'dynamic 70'
            },
            plot: {
                aspect: 'spline',
                lineWidth: 2,
                marker: {
                    borderWidth: 0,
                    size: 5
                }
            },
            scaleX: {
                lineColor: '#E3E3E5',
                zooming: true,
                item: {
                    fontColor: '#E3E3E5'
                },
                transform: {
                    type: 'date',
                    all: '%D %M %d<br>%H:%i:%s'
                }
            },
            scaleY: {
                minorTicks: 1,
                lineColor: '#E3E3E5',
                tick: {
                    lineColor: '#E3E3E5'
                },
                minorTick: {
                    lineColor: '#E3E3E5'
                },
                minorGuide: {
                    visible: true,
                    lineWidth: 1,
                    lineColor: '#E3E3E5',
                    alpha: 0.7,
                    lineStyle: 'dashed'
                },
                guide: {
                    lineStyle: 'dashed'
                },
                item: {
                    fontColor: '#E3E3E5'
                }
            },
            tooltip: {
                borderWidth: 0,
                borderRadius: 3
            },
            preview: {
                adjustLayout: true,
                borderColor: '#E3E3E5',
                mask: {
                    backgroundColor: '#E3E3E5'
                }
            },
            crosshairX: {
                plotLabel: {
                    multiple: true,
                    borderRadius: 3
                },
                scaleLabel: {
                    backgroundColor: '#53535e',
                    borderRadius: 3
                },
                marker: {
                    size: 7,
                    alpha: 0.5
                }
            },
            crosshairY: {
                lineColor: '#E3E3E5',
                type: 'multiple',
                scaleLabel: {
                    decimals: 2,
                    borderRadius: 3,
                    offsetX: -5,
                    fontColor: "#2C2C39",
                    bold: true
                }
            },
            series: []
        };

        this.$onInit = function () {
            $http.get(urljoin(__env.statsUrl, "test")).then(function (response) {
                $scope.myJson.series = response.data;
            })
        };

        this.$onDestroy = function () {
        };
    })

And the code of the view is:

<div class="row" ng-controller="DashBoardController">
  <div class="col-md-12">
    <div class="box">
      <div class="box-header with-border">
        <h3 class="box-title">Videos mas vistos</h3>

        <div class="box-tools pull-right">
          <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
            <i class="fa fa-minus"></i>
          </button>
          <button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
            <i class="fa fa-times"></i>
          </button>
        </div>
      </div>
      <div >
        <div zingchart id="myChart" class="box-body" zc-json="myJson" zc-values="series" zc-height=400 zc-width=100%></div>
      </div>
    </div>
  </div>
</div>

I try remove element on destroy, but nothing, can you help me_

aspect: 'stepped' doesn't work as expected.

const myJson = {
      type: 'area',
      globals: {
        fontFamily: 'Roboto'
      },
      backgroundColor: '#fff',
      title: {
        text: 'text',
        adjustLayout: true,
        backgroundColor: 'none',
        fontColor: '#05636c',
        fontSize: '24px',
        height: '25px',
        y: '15px'
      },
      plot: {
        aspect: 'stepped',
        stepStart: 'after',
        lineWidth: '2px',
        marker: {
          size: '1px',
          visible: true
        }
      },
      plotarea: {
        adjustLayout: true,
        marginBottom: 'dynamic',
        marginLeft: 'dynamic',
        marginRight: 'dynamic',
        marginTop: '10%'
      },
      preview: {
        borderWidth: 1,
        handle: {
          lineWidth: 0,
          height: 20
        },
        adjustLayout: true
      },
      scaleX: {
        transform: {
          type: 'date',
          all: '%dd %M\n %G:%i'
        },
        guide: {
          lineWidth: '0px'
        },
        item: {
          fontColor: '#05636c',
          textAlign: 'center',
          fontSize: '8px'
        },
        itemsOverlap: true,
        label: {
          text: 'Hour Range',
          fontSize: '14px',
          fontWeight: 'normal',
          offsetX: '10%'
        },
        tick: {
          lineWidth: '2px'
        },
        zooming: true
      },
      scaleY: {
        autoFit: true,
        minValue: 'auto',
        short: true,
        guide: {
          alpha: 0.2,
          lineStyle: 'dashed',
          lineWidth: '0px'
        },
        item: {
          fontColor: '#05636c',
          fontWeight: 'normal'
        },
        label: {
          text: 'Time',
          fontSize: '14px'
        }
      },
      crosshairX: {
        lineColor: '#898989',
        lineStyle: 'dashed',
        lineWidth: '1px',
        marker: {
          size: '4px',
          visible: true
        },
        plotLabel: {
          visible: true
        }
      },
      series: seriesData
    };

    if (guidelines.length === 1 && isGuidelineVisible) {
      myJson.plot.rules = [
        {
          rule: `%node-value > ${guidelines[0].limitValue}`,
          lineColor: 'red'
        }
      ];
    }
    if (guidelines.length === 0 || !request.isGuidelineVisible) {
      myJson.plot.rules = [
        {
          rule: `%node-value > 0`
        }
      ];
    }

    zingchart.render({
      id: 'myChart',
      data: myJson,
      height: '50%',
      width: '100%'
    });

I use the above configuration to visualize the sometimes large amount of data I have. I need to use aspect: 'stepped' for visualization. I create a specific guide line and visualize the values above it with a different colored line. For this, I use plot.rules. It works under these conditions, but when the amount of data increases, I encounter two situations:

case 1: aspect: 'stepped' doesn't work as expected. Default aspect value is working until zoom in. When zoom in aspect : 'stepped' comes into play.

case 2: if i use plot.rules, aspect: 'stepped' kicks in immediately. This time it is difficult to zoom in. Because when there is a lot of data, every time you zoom in, it is filtered again with the condition in the rules (if I'm not wrong).

What do you recommend?

Warning bower missing ignore entry

An easy to fix warning appears in bower install of ZingChart

bower ZingChart-AngularJS#~1.0.6 invalid-meta ZingChart-AngularJS is missing "ignore" entry in bower.json

with bower version : 1.6.3

Thx for this awesome directive btw ;)

zc-render?

I'm trying to evaluate zingCharts for our current project, fooling around with a render object/zc-render attribute has produced this interesting result.

http://jsfiddle.net/9tx7bob8/

Setting width to 100% produces a smaller graph than if i had just left the graph on the default values. I was following these docs:
http://www.zingchart.com/docs/reference/zingchart-object/#zingchart__render

Any insight into what is going on here or what i can do to get past this would be much appreciated.

Uncaught TypeError: eval(...) is not a function

I can concatenating and uglifying all vendor and source files in my project. When ZingChart-AngularJS gets appended to the ZingChart source this error occurs. The problem is the eval that wraps all of the source looks like this-

eval( ... source ... )

With NO semicolon to end it. So when this is followed by zingchart-angulars source-

eval( ... source ... )

(function() {})()

It gets uglified and appended as-

eval( ... source ... )(function() {})()

Leading to Uncaught TypeError: eval(...) is not a function.

Can a semicolon be added to the end of ZingChart source?

NPM

Hi
Could you also make the package available in npm?
Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.