Giter VIP home page Giter VIP logo

Comments (1)

AAChartModel avatar AAChartModel commented on June 2, 2024

配置 AAChartModel:

    public static ArrayList<Object> generateRandomNumberArrayWithLength(int length, int randomRange, int minNum) {
        ArrayList<Object> randomNumArrA = new ArrayList<>();
        for (int x = 0; x < length; x++) {
            int randomNum = (int) (Math.random() * randomRange + minNum);
            randomNumArrA.add(randomNum);
        }
        return randomNumArrA;
    }

    public static AAChartModel largeDataStackingColumnChart() {
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .backgroundColor("#000000")
                .colorsTheme(new String[]{"#1e90ff", "#04d69f", "#ef476f", "#ffd066"})
                .dataLabelsEnabled(false)
                .stacking(AAChartStackingType.Normal)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("2018")
                                .lineWidth(6f)
                                .data(generateRandomNumberArrayWithLength(3550, 100, 200).toArray()),
                        new AASeriesElement()
                                .name("2019")
                                .lineWidth(6f)
                                .data(generateRandomNumberArrayWithLength(3550, 150, 400).toArray()),
                        new AASeriesElement()
                                .name("2020")
                                .lineWidth(6f)
                                .data(generateRandomNumberArrayWithLength(3550, 150, 600).toArray()),
                });
    }

最终图表结果:

Screenshot_20230301_182049

以上是三组三千多个数据堆叠而成的柱状图📊, 所以可以说是: 柱状图的单个 AASeriesElementX 轴数据超过 3550 时, 都是可以绘制出来的.

from aachartcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.