You must be logged in to post your query.
Home › Forums › Chart Support › Legend Text
Tagged: legend, legendtext, php
How can i use a php variable as a legend text. Any Help would be appreciable.
@wweverma1,
Setting legendText as legendText: '<?php echo $legendText; ?>' should work fine in your case.
legendText: '<?php echo $legendText; ?>'
If you are still facing issue, kindly create sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive along with the sample data so that we can run it locally to understand the scenario better and help you out?
—- Manoj Mohan Team CanvasJS
I had already tried that, once i try this the chart doesn’t even load to my webpage.
Can you kindly create a sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive along with the sample data so that we can run it locally to understand the scenario better and help you out?
You must be logged in to reply to this topic. Login/Register