Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add custom JSON for a chart report #153

Closed
glebfox opened this issue Feb 4, 2019 · 3 comments
Closed

Ability to add custom JSON for a chart report #153

glebfox opened this issue Feb 4, 2019 · 3 comments
Assignees
Labels
client: web state: fixed Fixed by the developer type: enhancement New feature or request ver: 7.1.0 Fixed in version
Milestone

Comments

@glebfox
Copy link
Member

glebfox commented Feb 4, 2019

Description of the bug or enhancement

  • Minimal reproducible example
  1. Open Reports > Reports
  2. Click Create > Using Wizard
  3. Fill required fields, for Template type set Chart
  4. Go to the chart setup step
  • Expected behavior

There is a way to add custom settings for a char

  • Actual behavior

There is no way to add custom settings for a chart

@pribavkindenis
Copy link
Contributor

Now in the report template chart editor, you can see the source code editor called "JSON configuration" which allows you to paste any AmCharts JSON configuration for pie and serial charts. "JSON configuration" context helpers provide you example configurations for a pie and a serial chart respectively:

pie.png

serial.png

@glebfox
Copy link
Member Author

glebfox commented Apr 15, 2019

@pribavkindenis could you please provide JSON snippets?

@pribavkindenis
Copy link
Contributor

JSON configuration for a serial chart:

{
    "theme": "dark",
    "backgroundAlpha": 1,
    "backgroundColor": "black",
    "startDuration": 1,
    "depth3D": 20,
    "angle": 30,
    "graphs": [{
        "fillAlphas": 1,
        "lineAlpha": 1,
        "fillColors": ["#f12711", "#f5af19"],
        "lineColor": "black",
        "balloonColor": "#f12711"
    }]
}

JSON configuration for a pie chart:

{
    "theme": "dark",
    "backgroundAlpha": 1,
    "backgroundColor": "black",
    "depth3D": 20,
    "angle": 40,
    "colors": [
        "#0dffdc",
        "#00c6eb",
        "#0091ff",
        "#0c4ae8",
        "#1111fa"
    ]
}

@myatlevEvg myatlevEvg added the state: fixed Fixed by the developer label Apr 16, 2019
@myatlevEvg myatlevEvg assigned myatlevEvg and unassigned natfirst Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client: web state: fixed Fixed by the developer type: enhancement New feature or request ver: 7.1.0 Fixed in version
Projects
None yet
Development

No branches or pull requests

5 participants