title: html chart for a web server from esp8266 with no wifi connection
body: <p>I have set up the esp8266 in access point mode so i can access a web server from it. I want to be able to see a chart on this page. Is there any way to use chart.js or similar in html code without needing a wifi connection?</p>
  
  <p>this is my html string which I send to the server:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>const PROGMEM char* s = R"foo(
  &lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;title&gt;Chart.js demo&lt;/title&gt;
      &lt;script src="./node_modules/chart.js/dist/Chart.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;h1&gt;Chart.js Sample&lt;/h1&gt;
      &lt;div class="chart-container" style="width: 600px; height: 400px"&gt;
          &lt;canvas id="countries"&gt;&lt;/canvas&gt;
      &lt;/div&gt;
  
      &lt;script&gt;
          var pieData = {
              datasets: [{
                  data: [20, 40, 10, 30],
                  backgroundColor: ["#878BB6", "#4ACAB4", "#FF8153", "#FFEA88"]
              }]
          };
  
          // Get the context of the canvas element we want to select
          var countries = document.getElementById("countries").getContext("2d");
          new Chart(countries, {
              type: 'pie',
              data: pieData
          });
      &lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  )foo";</code></pre>
  </div>
  </div>
  </p>