Giter Site home page Giter Site logo

Comments (8)

AAChartModel avatar AAChartModel commented on September 27, 2024

参考 Swift 版本的相同问题:

Kotlin 版本的禁用图例的点击事件做法与之类似.

from aachartcore-kotlin.

wxhwan avatar wxhwan commented on September 27, 2024

from aachartcore-kotlin.

AAChartModel avatar AAChartModel commented on September 27, 2024

饼图禁用图例点击事件的方式稍微特殊一点, 参考:

from aachartcore-kotlin.

wxhwan avatar wxhwan commented on September 27, 2024

但是我用的是java版本的,是这么写吗
aaOptions.plotOptions.series.events = new AASeriesEvents().legendItemClick("false");

from aachartcore-kotlin.

AAChartModel avatar AAChartModel commented on September 27, 2024

Java 版本的写法:

        //禁用图例点击事件
        aaOptions.plotOptions.series.events = new AASeriesEvents()
                .legendItemClick("function() { " +
                        "return false; " +
                        "}");

demo 中有相关示例, 下载运行查看即可.

from aachartcore-kotlin.

wxhwan avatar wxhwan commented on September 27, 2024

点击了之后看起来是不会隐藏折线了,但是折线的颜色变浅了

from aachartcore-kotlin.

AAChartModel avatar AAChartModel commented on September 27, 2024

这个应该是 Highcharts 刻意的默认效果, 参考:

from aachartcore-kotlin.

AAChartModel avatar AAChartModel commented on September 27, 2024

点击了之后看起来是不会隐藏折线了,但是折线的颜色变浅了

参考 Swift 版本的相同问题:

from aachartcore-kotlin.

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.