Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

170
Views
how to execute jquery sparkline from html json string sent by rest api?

I have a task to show sparkline in angular web app, currently I use angular 12. the problem I face is, data sent by rest api like this:

{
    "data" : "<span class='sparklines' values='1,2,3,4,5,4,3,2,1'></span>" 
}

I already try to render that html string like this:

<div [innerHTML]="data"></div>
this.data = resp.data;

and html is shown as span with class sparklines,

I have an idea, may be I can trigger jquery.sparklines code every this.data changed. but it still and idea, because I dont have any idea how to do it in code.

how to execute jquery sparkline from html json string sent by rest api, without string extraction?

because sparklines is only one of jquery plugins that I need render.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!