Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

<link rel="stylesheet" type="text/css" href="style.css" />
<meta charset="UTF-8">
<title> task11_Создание графика(</title>
<body lang='ru'>
		<h1>Creating a chart</h1>
		To create a chart, we need to instantiate the Chart class. To do this, we need to pass in the 2d
		context of where we want to draw the chart. Here's an example.
		   <span class="darkblue">&lt;canvas</span> <span class='green'>id=</span><span class='red'>"myChart"</span> <span class='green'>width=</span><span class='red'>"400"</span> <span class='green'>height=</span><span class='red'>"400"</span><span class="darkblue">&lt;/canvas></span>
		<em>// Get the context of the canvas element we want to select</em> </br>
		   <span class="black">var</span> ctx= <span class='beruze'>document</span>.getElementById(<span class='red'>"myChart"</span>).getContext(<span class='red'>"2d"</span>); </br>
           <span class="black">var</span> <span class='red'>myNewChart</span> = <span class="black">new</span> Chart(ctx).PolarArea(data);
	   We can also get the context of our canvas with jQuery. to do this, we need to
	   get the DOM node out of the jQuery collection, and call the getContext("2d") method on that.
    <div class='last_block'>		
		<em>// Get context with jQuery - using jQuery's .get() method.</em> </br>
		       <span class="black">var</span> ctx = $(<span class='red'>#myChart"</span>.get(<span class='beruze'>0</span>).getContext(<span class='red'>"2d"</span>) </br>
		 <em>// This will get the first returned node in the jQuery collection</em> </br>
           <span class="black">var</span> myNeChart = <span class="black">new</span> Chart(ctx);
				After we're instantiated the Chart class on the canvas we want to draw on, Chart.js will handle the scaling for retina displays.
        <a href=""></a>
article {
address a{
       color: black; 
	   text-decoration: none;
h1, a,.black {color:black;
p {padding:1em 0 1em 0;}
code   {
em   {
div {
	 border: 1px solid #D8D8D8;
	 border-radius: 6px;
.last_block {
            overflow-x: scroll;
.red    {color:red;}
.green  {color:green;}
.beruze {color:#0B615E;}
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.