Class MarimekkoRenderer
java.lang.Object
com.arbergashi.charts.render.BaseRenderer
com.arbergashi.charts.render.specialized.MarimekkoRenderer
- All Implemented Interfaces:
ChartRenderer
MarimekkoRenderer - Marimekko/Mosaic Chart
Professional Marimekko chart renderer for visualizing two-dimensional categorical data. Both width and height of rectangles represent proportions.
Features:
- Two-Dimensional: Width = category size, Height = subcategory proportion
- Proportional Areas: Rectangle area represents total contribution
- Market Analysis: Perfect for market share and segment analysis
- Color-Coded: Different colors for subcategories
Data Mapping:
ChartPoint fields: x → Category index y → Value/proportion weight → Category width (optional, defaults to equal) label → Subcategory name
Use Cases:
- Market segmentation analysis
- Product portfolio visualization
- Revenue breakdown by region and product
- Customer demographics
- Since:
- 2026-01-01
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Field Summary
Fields inherited from class BaseRenderer
PIXEL_BUF, PIXEL_BUF4 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawData(Graphics2D g, ChartModel model, PlotContext context) Implementation-specific drawing logic.Methods inherited from class BaseRenderer
drawHighlightPoint, drawI18nLabel, drawLabel, getArc, getCachedFont, getCachedGradient, getCachedStroke, getCachedStroke, getCachedStroke, getCubicCurve, getEllipse, getId, getLayerIndex, getLegendColor, getLine, getName, getPathCache, getPointAt, getRect, getRoundRectangle, getSeriesColor, getSeriesStroke, getTheme, getTooltipText, isLegendRequired, isMultiColor, pBuffer, pBuffer4, render, resolveTheme, seriesOrBase, setLayerIndex, setMultiColor, setTheme, setupQualityHints, themeAccent, themeAxisLabel, themeBackground, themeBearish, themeBullish, themeForeground, themeGrid, themeSeriesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChartRenderer
clearHover, createContext, getFocusValues, getPreferredYRange, renderEmptyState, supportsEmptyState
-
Constructor Details
-
MarimekkoRenderer
public MarimekkoRenderer()
-
-
Method Details
-
drawData
Description copied from class:BaseRendererImplementation-specific drawing logic. Must follow Zero-Allocation rules.- Specified by:
drawDatain classBaseRenderer
-