Code Monkey home page Code Monkey logo

Comments (7)

assafsun avatar assafsun commented on May 27, 2024

I'm closing this issue because it's refer to ngx-charts and not ngx-graph

from ngx-graph.

kenisteward avatar kenisteward commented on May 27, 2024

@assafsun could you explain? The problem lies in the fact that the legend options from ngx-charts are not exposed here in ngx-graph.

As such it would just require those to be exposed here.

from ngx-graph.

assafsun avatar assafsun commented on May 27, 2024

Hi @kenisteward

Sorry if I missed something, I'm opening it again in order for better understanding.
Thank you for responding to it.

  1. ngx-charts is used as container to ngx-graph. Can you please explain on your description (if possiable screen shots) on the loaded legend and what is missing?

  2. If you are refer to the legends on the links than today you can set your own template on the middle of the links.

  3. If you are refer to a legend table that is outside the graph (as seen in charts) than you can craete your own custom legend regardless to the graph that ngx-graph create.

Please update me on the missing items and I will be happy to try to help.

Assaf

from ngx-graph.

kenisteward avatar kenisteward commented on May 27, 2024

@assafsun
https://github.com/swimlane/ngx-graph/blob/master/src/graph/graph.component.ts#L61
https://github.com/swimlane/ngx-graph/blob/master/src/graph/graph.component.ts#L880

This was what I was referring to in the original post.

I use your library in this project
https://github.com/FINRAOS/herd-ui/blob/master/src/app/data-entities/components/data-entity-detail/data-entity-detail.component.html#L300

When I used it originally, I was unable to figure out how to set the legend title to something that I wanted other than the default. I had assumed an input needed to be added (currently [legend] is a boolean and does not allow you to actually set the title or other things) that would handle all the other legend options.

What is the proper way to change the legend options?

Will update this with screenshots when I reset the dev environment. I've since moved from that project.

from ngx-graph.

assafsun avatar assafsun commented on May 27, 2024

I will check it and will update.

from ngx-graph.

marjan-georgiev avatar marjan-georgiev commented on May 27, 2024

@kenisteward we will be deprecating the legend feature in the next major version (6.0.0) and remove it in 7.0.0. This change will happen as a side effect of removing the dependency on ngx-charts (thus reducing bundle size and improving performance).

Please consider building a separate legend component outside of the graph if you need one.

from ngx-graph.

assafsun avatar assafsun commented on May 27, 2024

Closed due to the legend deprecating in the next major version

from ngx-graph.

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.