ZingChart: I bought a license. Why do I still see the watermark?
When you buy a license, you should receive an email and receipt from our Sales department. To provide your license, we will need the domain(s) you want the licenses applied to. We will then generate and send a license file for the applicable domain(s).
There are generally two reasons why the watermark is still visible on your charts:
-
The license file needs to be appropriately placed on your page
-
The license file was not requested for that particular domain
1. The license file needs to be included in the appropriate location on your page
Make sure the license key(s) is set to the ZC.LICENSE
variable, e.g.,
<code>ZC.LICENSE =["569d52cefae586f634c54f86dc99e6a9","ee6b7db5b51705a13dc2339db3edaf6d"]
When placing the variable on your page, make sure it is located after you load the library and before the render method. See the below example.
<code><br> <br> <script src="https://cdn.zingchart.com/2.2.2/zingchart.min.js"></script><br> <script><br> ZC.MODULESDIR = 'https://cdn.zingchart.com/2.2.2/modules/';<br> ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9","ee6b7db5b51705a13dc2339db3edaf6d"];<br> </script><br> <br> <br> <div id="myChart"></div><br> <script><br> var myConfig = {<br> type: "bar",<br> series : [ { values : [35,42,67,89,25,34,67,85] } ]<br> };<br> <br> zingchart.render({<br> id : 'myChart',<br> data : myConfig,<br> height: 400,<br> width: 600<br> });<br> </script><br> <br>
2. The license file was not requested for that particular domain
License files are generated for particular domains and applicable subdomains. Talk to our sales team on chat (see the bottom-right corner of the page) or by email at sales@zingchart.com, and we’ll help you out.