Skip to content
Back to skills

Example 1 Loading Data From Csv

ASecurity

Sub-skill of echarts: Example 1: Loading Data from CSV (+5).

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
datajavascriptgojavaperformance

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill example-1-loading-data-from-csv --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Example 1 Loading Data From Csv?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Example 1 Loading Data From Csv
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-example-1-loading-data-from-csv/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-example-1-loading-data-from-csv)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: echarts-example-1-loading-data-from-csv
description: 'Sub-skill of echarts: Example 1: Loading Data from CSV (+5).'
version: 1.0.0
category: data-visualization
type: reference
scripts_exempt: true
---

# Example 1: Loading Data from CSV (+5)

## Example 1: Loading Data from CSV


```javascript
// Fetch CSV data
fetch('../data/sales.csv')
  .then(response => response.text())
  .then(csvText => {
    // Parse CSV
    const lines = csvText.trim().split('\n');
    const headers = lines[0].split(',');

    const categories = [];

*See sub-skills for full details.*

## Example 2: Multi-Axis Chart


```javascript
var option = {
  title: {
    text: 'Temperature and Precipitation'
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross'
    }

*See sub-skills for full details.*

## Example 3: Heatmap Calendar


```javascript
// Generate data for a year
function getVirtulData(year) {
  const date = +echarts.time.parse(year + '-01-01');
  const end = +echarts.time.parse(+year + 1 + '-01-01');
  const dayTime = 3600 * 24 * 1000;
  const data = [];
  for (let time = date; time < end; time += dayTime) {
    data.push([
      echarts.time.format(time, '{yyyy}-{MM}-{dd}', false),

*See sub-skills for full details.*

## Example 4: Gauge Chart


```javascript
var option = {
  title: {
    text: 'Performance Score'
  },
  tooltip: {
    formatter: '{a} <br/>{b} : {c}%'
  },
  series: [
    {

*See sub-skills for full details.*

## Example 5: Geographic Map (China)


```javascript
// Load map data
fetch('https://cdn.jsdelivr.net/npm/echarts/map/json/china.json')
  .then(response => response.json())
  .then(chinaJson => {
    echarts.registerMap('china', chinaJson);

    var option = {
      title: {
        text: 'Sales by Province',

*See sub-skills for full details.*

## Example 6: Dynamic Real-Time Data


```javascript
var data = [];
var now = new Date();

function randomData() {
  now = new Date(+now + 1000);
  return {
    name: now.toString(),
    value: [
      [now.getFullYear(), now.getMonth() + 1, now.getDate()].join('/') + ' ' +

*See sub-skills for full details.*

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.