Comments (6)
The width
call on an html element fails if the elements of the page have not been injected with jquery (since width
is not a DOM function, but a jquery one)
So I've seen this happen on a desktop browser when jquery
is loaded after angular-js
. I haven't used ionic, but you should look for a similar reason. Maybe the way ionic loads jquery has changed?
from angular-charts.
Hi Aviks
I just changed the jquery loading position before angular-js and there is a new error:
TypeError: undefined is not a function
at init (http://localhost/MP2JSMobile/Ionic2/lib/js/angular-charts.js:55:9) in this code:
var chartFunc = getChartFunction(chartType);
--> chartFunc();
Thanks.
Andrés
from angular-charts.
I've seen this happen when your chartType value is incorrect. The set of allowed chartType values are line
, pie
, bar
,area
and point
.
Note that the ac-chart
attribute must specify the model value that contains the chart type, and not specify the chart type directly.
So DO NOT do this ac-chart='line'
Rather do this:
ac-chart='chartType'
and in your controller,
$scope.chartType='line'
Hope this helps.
from angular-charts.
Yes!. You are right.
Thanks.
Regards,
Andrés
from angular-charts.
Just to add some more info, here's a similar issue with plunkr - #8. Closing this one.
from angular-charts.
thanks a lot!
from angular-charts.
Related Issues (20)
- Pie Chart Radius
- Typeerror on IE11
- bower install error - ECONFLICT Unable to find suitable version for d3
- It doesn't work with AngularJS 1.4.* HOT 1
- Customize tootlip value for a Pie Chart HOT 1
- Syntax Error on Legend ng-show
- Charts can't be displayed within tabs HOT 3
- Y-Axis Scale
- It works with angular 1.2.28 but not with 1.4.8 HOT 1
- legend width
- 'Please set height and width for the chart element' on window resize HOT 2
- Issue in makeToolTip function of angular-chart.js
- Why doesn't the Pie chart show multiple y axis values?
- Multi-Series Grouped and Stacked Bar Chart HOT 1
- missing parameter d in call of function updateToolTip
- if title is false height ist not correct in setContainers
- How to display date on lable?
- How to add different colors to each bars in BarChart
- About adding units to the angular-charts on the X-axis and Y-axis.
- Please set height and width for the chart element for example code with AngularJS 1.7.6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-charts.