Fläche mit negativen Werten

Der Nettogeldfluss überquert null; die Fläche wird bis zur Nulllinie gefüllt.

Chart type
Area area
Tier
Kostenloser Core
Collection
Area
Zeichnen
Live im Website-Design
.md ansehen Agenten einrichten
LIVE/area/area-with-negative4 of 8 in Area

Configuration

Original Standalone
const options = {
  chart: {
    height: 380,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "area",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Net cash k€",
      data: [12, 8, -4, -11, -6, 3, 14, 21, 9, -2, -9, 5]
    }
  ],
  xaxis: {
    categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
  },
  stroke: {
    curve: "smooth",
    width: 2
  },
  dataLabels: {
    enabled: false
  },
  title: {
    text: "Net cash flow"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()