Liveweave: Generative AI Web Editor & HTML/CSS/JS Playground
Initializing
Liveweave
Web
expand_more
home
Home
Palette
Color Explorer
arrow_outward
Polyline
Graphics Editor
arrow_outward
frame_source
Python Playground
arrow_outward
build
Tools
expand_more
restart_alt
Load "Hello Weaver!"
post_add
Generate Lorem ipsum...
code
Format HTML
code_blocks
Format CSS
data_object
Format JavaScript
library_add
Library
expand_more
A
Algolia JS
Animate CSS
Apex Charts JS
B
Bulma CSS
Bootstrap
C
Chart JS
Chartist
Create JS
D
D3
Dojo
F
Foundation
Fullpage JS
G
Granim JS
Google Charts
H
Halfmoon
J
jQuery
M
Materialize
Moment JS
Masonry JS
Milligram CSS
P
Pure CSS
Primer CSS
Popper JS
Pattern CSS
Picnic CSS
R
React JS
Raphael JS
Raisin CSS
S
Semantic UI
Skeleton CSS
Spectre CSS
Tachyons CSS
T
Tailwind
Three JS
U
UI Kit
Vis JS
W
Water CSS
download
Download
expand_more
developer_mode
Download as HTML
folder_zip
Download as .ZIP
cloud_upload
Fork
account_circle
Login
settings
Settings
expand_more
Editor font
14
px
A
A
Line number
Mini map
Word wrap
sync_alt
Reset Settings
smart_display
Run
left_panel_close
AI Assistant
dashboard
All
HTML
CSS
JS
visibility
Preview
bolt
Live Preview
terminal
JS Console
<!DOCTYPE html> <html> <head> <title>HighCharts Polar Bar Chart</title> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/highcharts-more.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <script src="https://code.highcharts.com/modules/export-data.js"></script> <script src="https://code.highcharts.com/modules/accessibility.js"></script> <!-- Flag sprites service provided by Martijn Lafeber, https://github.com/lafeber/world-flags-sprite/blob/master/LICENSE --> <link rel="stylesheet" href="https://github.com/downloads/lafeber/world-flags-sprite/flags16.css" /> </head> <body> <!-- Start your code here --> <figure class="highcharts-figure"> <div id="container"></div> <p class="highcharts-description"> A polar bar chart is similar to a bar chart, but the y-axis is circular. In this demo we see the total Winter Olympics medals earned for the top 5 countries. </p> </figure> <!-- End your code here --> </body> </html>
#container { height: 600px; } .highcharts-figure, .highcharts-data-table table { min-width: 320px; max-width: 800px; margin: 1em auto; } .highcharts-data-table table { font-family: Verdana, sans-serif; border-collapse: collapse; border: 1px solid #ebebeb; margin: 10px auto; text-align: center; width: 100%; max-width: 500px; } .highcharts-data-table caption { padding: 1em 0; font-size: 1.2em; color: #555; } .highcharts-data-table th { font-weight: 600; padding: 0.5em; } .highcharts-data-table td, .highcharts-data-table th, .highcharts-data-table caption { padding: 0.5em; } .highcharts-data-table thead tr, .highcharts-data-table tr:nth-child(even) { background: #f8f8f8; } .highcharts-data-table tr:hover { background: #f1f7ff; } .ld-label { width: 200px; display: inline-block; } .ld-url-input { width: 500px; } .ld-time-input { width: 40px; }
Highcharts.chart('container', { colors: ['#FFD700', '#C0C0C0', '#CD7F32'], chart: { type: 'column', inverted: true, polar: true }, title: { text: 'Winter Olympic medals per existing country (TOP 5)', align: 'left' }, subtitle: { text: 'Source: ' + '<a href="https://en.wikipedia.org/wiki/All-time_Olympic_Games_medal_table"' + 'target="_blank">Wikipedia</a>', align: 'left' }, tooltip: { outside: true }, pane: { size: '85%', innerSize: '20%', endAngle: 270 }, xAxis: { tickInterval: 1, labels: { align: 'right', useHTML: true, allowOverlap: true, step: 1, y: 3, style: { fontSize: '13px' } }, lineWidth: 0, gridLineWidth: 0, categories: [ 'Norway <span class="f16"><span id="flag" class="flag no">' + '</span></span>', 'United States <span class="f16"><span id="flag" class="flag us">' + '</span></span>', 'Germany <span class="f16"><span id="flag" class="flag de">' + '</span></span>', 'Austria <span class="f16"><span id="flag" class="flag at">' + '</span></span>', 'Canada <span class="f16"><span id="flag" class="flag ca">' + '</span></span>' ] }, yAxis: { lineWidth: 0, tickInterval: 25, reversedStacks: false, endOnTick: true, showLastLabel: true, gridLineWidth: 0 }, plotOptions: { column: { stacking: 'normal', borderWidth: 0, pointPadding: 0, groupPadding: 0.15, borderRadius: '50%' } }, series: [{ name: 'Gold medals', data: [148, 113, 104, 71, 77] }, { name: 'Silver medals', data: [113, 122, 98, 88, 72] }, { name: 'Bronze medals', data: [124, 95, 65, 91, 76] }] });
terminal
JavaScript Console
Preview
Clear
close
›
Run