Skip to content

Type Definition of zing chart - Unable to find few options #5

Closed

Description

@PITPL-Nirav-Shah

I am trying to use type definition of zing chart from https://github.com/zingchart/zingchart-angular/blob/master/projects/zingchart-angular/src/zingchart.d.ts

There are few option that I am not able to find it and that is giving a compilation error.

  • In 'scale-y' unable to add multiple items.

Screenshot from 2021-02-04 18-21-22

  • In behavior- unable to add multiple behavior option.

Screenshot from 2021-02-04 18-22-49

  • Unable to find an option to assign a dynamic text to tooltip.

Screenshot from 2021-02-04 18-22-21

If we prepare json without type definition then above mentioned options are working properly in chart.

Activity

  1. zingsoftadmin commented on Mar 15, 2021

    @zingsoftadmin

    For behavior and tooltip.text - have updated types in https://github.com/zingchart/DefinitelyTyped
    For scale.items - Your usage is incorrect. You should be using item to style scale items - https://www.zingchart.com/docs/tutorials/elements/scales#scale-items

  2. stuurman commented on Mar 26, 2021

    @stuurman

    @zingsoftadmin
    I assumed angular-zingchart already has typings? Why do then additional typings need to be installed?
    Also the documentation does not mention this: https://www.zingchart.com/docs/integrations/angular? Or did I overlook it?

  3. stuurman commented on May 17, 2021

    @stuurman

    @zingsoftadmin
    I assumed angular-zingchart already has typings? Why do then additional typings need to be installed?
    Also the documentation does not mention this: https://www.zingchart.com/docs/integrations/angular? Or did I overlook it?

    @zingsoftadmin polite kick

  4. PITPL-Nirav-Shah commented on May 20, 2021

    @PITPL-Nirav-Shah
    Author

    d> For behavior and tooltip.text - have updated types in https://github.com/zingchart/DefinitelyTyped

    For scale.items - Your usage is incorrect. You should be using item to style scale items - https://www.zingchart.com/docs/tutorials/elements/scales#scale-items

    Thank you for updating chart types.

    I was not mentioning about scale items. I mentioned about the items in guide in scale-y.

    Here is the link I m referering to for JSON :- https://www.zingchart.com/docs/api/json-configuration/graphset/scale-y/guide/items

    Inside a items attribute of guide, We can define an array of items to setup mutiple colors . Here is the sample link
    https://app.zingsoft.com/demos/embed/325L7V14?_ga=2.124812685.623227439.1621510069-1867824964.1616003215

    We are not able to define array of items inside guide of scale. I am using latest typed defination of zingchart as you metinoed.
    I also wanted to define a border-radius for each item, which I am able to do it javascript demo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions