question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need a REALLY Basic HTML Page

See original GitHub issue

I was hoping to be able to create a very simple single HTML page with a single chart or two so that the designers could do their thing and then we can incorporate their designs in Angular.

Is there any way to link a simple script tag with a src to have a single page with a chart?

With d3, the following works fine… it’d be great to have something similar.

<!DOCTYPE html>
<html>
  <head>
 <meta charset='utf-8' />
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <script src="https://d3js.org/d3-selection.v1.min.js"></script>
  </head>
  <body>
    <div id='charts'>
      <h1 id='heading'></h1>
    </div>
    <script>
      d3.select('#heading')
        .text('My Page');
    </script>
  </body>
</html>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Golodhroscommented, May 16, 2017

Hi @mmartimo, @AlfonsoML and @perborgen,

We have just released a patch that has solved this issue. From now on, you would be able to use a CDN to download Britecharts:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/britecharts/dist/css/britecharts.min.css" type="text/css" />

<script src="https://cdn.jsdelivr.net/npm/britecharts@1/dist/bundled/britecharts.min.js" type="text/javascript" />

Also, you could find the split modules and the rest of the contents of the dist folder in this link: https://cdn.jsdelivr.net/npm/britecharts/dist/

Thanks for your patience!

1reaction
Golodhroscommented, May 12, 2017

Hi @AlfonsoML, Ouch! sorry to hear that! Yes, you would need to load the colors helper, you can see the whole demo code in https://github.com/eventbrite/britecharts/blob/master/demos/demo-bar.js

Totally, we are working on making the demos more accessible. Maybe using codePens or JSBin containers. We are working on having a whole bundle download (it’s almost there) and that would allows us to use the CDN and set up test pages easily.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML Basic Examples - W3Schools
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP,...
Read more >
99 Free HTML Templates You Can Download Right Now
This page describes the 99 best HTML templates that you can get for free. You don't need the overhead of a CMS to...
Read more >
My First Site | creating your first website, basic HTML for ...
My First Page Learn the basic structure of a HTML page, a tag, and how to save it as a webpage. Basic Formatting...
Read more >
Example of a simple HTML page
Example of a simple HTML page. Hypertext Markup Language (HTML) is the most common language used to create documents on the World Wide...
Read more >
HTML basics - Learn web development | MDN
If we wanted to state that our cat is very grumpy, we could wrap the word ... Take the <img> element that we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found