Read value of an html script element in Angular, which is of type json

In the html page, there will be a script element which is a static content ( generated from a Django backend) with an ID. <script id="hello-data" type="application/json">{"hello": "worldu003C/scriptu003Eu0026amp;"}</script> I wanted to get that data in an angular service ( or even component) which would have a simple getElementById is javascript. const value = JSON.parse(document.getElementById(‘hello-data’).textContent); I […]

By A J
Published
Categorized as angular, django, getelementbyid, javascript Tagged , , ,

Angular 9 Application not loading in IE11

I am facing an issue where my app is not loading in IE 11 after adding ngx-treeview. I am getting the following error(SCRIPT1002: Syntax error), Script Error Error point in vendor.js I am not sure how to resolve this issue. The application runs fine in chrome and firefox but in IE11 I only see Loading… […]

How to show values on data points in fusion time graph?

We need to show the values on data points in fusion time graphs similar to fusion charts. In fusion charts, we used to have "showValues": 1 attribute, but I could not find similar attribute for the fusion time graphs. I found a feature called data-markers as shown in this link: https://www.fusioncharts.com/dev/fusiontime/fusiontime-component/data-markers but we can display […]

By A J
Published
Categorized as angular, fusioncharts Tagged ,

How to show binning of 7 days in fusiontime chart?

The requirement is to display weekly data in the fusion time graph. So we tried to use binning as follows: binning:{ "year": [], "month": [], "day": [7], "hour": [], "minute": [], "second": [], "millisecond": [] } But the allowed values for binning are 1, 2, 3, 5, 6, 10, 15 as mentioned in the Binning […]

By A J
Published
Categorized as angular, fusioncharts Tagged ,

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq