I am using the Popup sample code for code learning.
Instead of the dojox/charting/themes/Dollar I created my own two themes and uploaded them on a web server:
http://test-themes.sensomarket.com/themes/
But I can not manage to link the themes to my charts.
When I add these lines the script stops working:
<SPAN class="token function">require</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="string token">"themes/hea"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"themes/wat"</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="keyword token">function</SPAN><SPAN class="punctuation token">(</SPAN>hea<SPAN class="punctuation token">,</SPAN> wat<SPAN class="punctuation token">)</SPAN>
chart1<SPAN class="punctuation token">.</SPAN><SPAN class="token function">setTheme</SPAN><SPAN class="punctuation token">(</SPAN>hea<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
chart2<SPAN class="punctuation token">.</SPAN><SPAN class="token function">setTheme</SPAN><SPAN class="punctuation token">(</SPAN>wat<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
My code is available here on JS BIN.
I successfully tested the themes in localhost.
But how do I link them from a web server?
Thank you !