Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass html in title in the conf object. #89

Open
Dgs-asohail4 opened this issue Nov 19, 2018 · 0 comments
Open

How to pass html in title in the conf object. #89

Dgs-asohail4 opened this issue Nov 19, 2018 · 0 comments

Comments

@Dgs-asohail4
Copy link

I have this conf object. The only issue is with the title property. In the library function all the object is converted into string. During the process the ```` are being replaced by "" due to it does not render in the webview (as debug from chrome inspector). Any idea how to change the parser of how pass html to the title property of the object?

var conf = {
           chart: {
               renderTo: 'container',
               plotBackgroundColor: null,
               plotBackgroundImage: null,
               plotBorderWidth: 0,
               plotShadow: false,
               backgroundColor: 'transparent',
               style: {
                   // fontFamily: 'open sans',
                   color: '#556a78'
               }
           },
....
           title: {
               useHTML: true,
               text:`
               <span class="chart-content">
                   <span class="chart__title">KPI</span>
                   <span class="chart__score">`+surveyRatio+`<small>%</small></span>
                   <span class="chart__count">Closed loop count <span>`+count+`</span></span>
               </span>
           `,
               verticalAlign: 'middle',
               floating: false,
               size:'80%',
               align: 'center',
               y: -40,
               x: -5
           },
....
       };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant