package com.example.components;

import java.util.List;
import java.util.Map;

public class PieChart extends ApexChart {

    public PieChart() {
        super("pie");
    }

    public void setData(List<Double> values, List<String> labels) {
        Map<String, Object> options = DialectTheme.baseOptions("pie");
        options.put("series", values);
        options.put("labels", labels);

        sendOptions(options);
    }
}
