new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Apache ECharts · all subjects

getting-started

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

ECharts installation methods

ECharts can be installed using: download from Apache ECharts website then build from source; download from GitHub releases; use npm with 'npm install echarts --save'; or use a CDN like jsDelivr.

Loading ECharts with script tag

Include ECharts by loading echarts.min.js in a script tag within the HTML head section.

DOM container requirement for ECharts

Before drawing charts, prepare a DOM container with explicit width and height values. ECharts requires this container to render the chart.

Basic chart initialization and setup

Initialize an ECharts instance with echarts.init() passing a DOM element, then call setOption() on the instance with a configuration object containing title, tooltip, legend, xAxis, yAxis, and series properties.

Complete minimal bar chart example

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ECharts</title> <script src="echarts.js"></script> </head> <body> <div id="main" style="width: 600px;height:400px;"></div> <script type="text/javascript"> var myChart = echarts.init(document.getElementById('main')); var option = { title: { text: 'ECharts entry example' }, tooltip: {}, legend: { data:['Sales'] }, xAxis: { data: ["shirt","cardign","chiffon shirt","pants","heels","socks"] }, yAxis: {}, series: [{ name: 'Sales', type: 'bar', data: [5, 20, 36, 10, 10, 20] }] }; myChart.setOption(option); </script> </body> </html> This example shows how to create and display a simple bar chart using ECharts.

Give your agent this brain