Skip to main content
Latest PyPI version Number of PyPI downloads Test cone.charts

This package provides Chart.js integration in to cone.app.

  • Currently version v4.0.1 of Chart.js is included.

  • For building time and date based charts, Luxon v3.0.3 is included.

  • For Luxon integration into Chart.js, chartjs-adapter-luxon is required which is included in version v1.2.1.

Resources

The following cone.charts related application configuration options are available:

  • cone.charts.luxon: Flag whether Luxon resources are delivered to browser. Defaults to false.

Chart Tile

Some chart basic tiles are available in cone.charts.

The following example shows how to implement a linechart:

from cone.charts.browser.chart import chart_tile
from cone.charts.browser.chart import LineChartTile

@chart_tile(
    name='my_linechart',
    interface=MyModel,
    permission='view')
class MyLineChart(LineChartTile):

    @staticmethod
    def chart_data(model, request):
        return {
            'labels': ['Label 1', 'Label 2'],
            'datasets': [{
                'data': [10, 20],
                'borderColor': 'rgb(255,0,0)',
                'tension': 0.3,
                'label': 'Dataset Label',
            }],
        }

Please refer to the source code in cone.charts.browser package for available chart tiles.

Contributors

  • Robert Niederreiter

  • Torben Baumgartner

  • Lena Daxenbichler

Changes

2.0.0 (2026-10-24)

  • Require cone.app 2.0. treibstoff>1.99 is required already, which only cone.app 2.0 is compatible with. Check out cone.app and treibstoff from their 2.0 branches in mx.ini. [rnix]

  • Modernise the code ruff flags as outdated: u'' prefixes, .format() over f-strings. Remove unused import. Behaviour unchanged. [rnix]

  • Add qa.ruff domain to Makefile and pin the ruff rule selection in pyproject.toml, make check runs ruff check. [rnix]

  • Pin setuptools<82.0.0 in mx.ini. pyramid 2.0.2 still imports pkg_resources, which setuptools 82 removed. [rnix]

1.1.0 (2026-02-03)

  • Refactor package layout to use pyproject.toml and implicit namespace packages. [rnix]

  • Setup Makefile. [lenadax]

  • Run tests with pytest. [lenadax]

  • Initial work. [rnix, toalba, lenadax]

License

MIT License

Copyright (c) 2022-2025, Cone Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for cone.charts 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cone.charts 2.0.0
File Size Uploaded Provenance Actions
cone_charts-2.0.0.tar.gz 226.7 kB Without provenance Details for cone_charts-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cone.charts 2.0.0
File Interpreter ABI Platform Actions
cone_charts-2.0.0-py3-none-any.whl Python 3 none any Details for cone_charts-2.0.0-py3-none-any.whl

Total release size: 461.7 kB

Release files / cone_charts-2.0.0.tar.gz

Download URL cone_charts-2.0.0.tar.gz
Size 226.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2a76dfb8eadfa557e1c9ce4023de5a47e88488d2ec33db02fb7774a5af7edea6
BLAKE2b-256 checksum
How to use checksums
cb95557a1ffab4b0ca3b0363041dd51f75868a348b95efe0af1dcf53b7fff073
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / cone_charts-2.0.0-py3-none-any.whl

Download URL cone_charts-2.0.0-py3-none-any.whl
Size 235.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d300070ed895ac8ff53f94ded0cdd483718bc07d5ad663c027221cd2c5cb99ab
BLAKE2b-256 checksum
How to use checksums
4d4c52ce43c7696ed98064666d31f018d2246a692f3db0f2b0dbcc060e1714a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for cone.charts 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page