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.1 (2026-10-31)

  • Extend the JS tests to 100 % coverage, all modules including bundles are loaded by the tests now. [rnix]

  • Lint and format the JS code with biome. make check runs biome check, make format runs biome check --write (see include.mk). Behavior unchanged. [rnix]

  • JS tooling: Commit pnpm-lock.yaml. Upgrade @web/test-runner to 1.0 and run the JS tests headless in Chromium via Playwright. Pin patched versions of vulnerable transitive dependencies via pnpm.overrides. [rnix]

  • Sort the imports with ruff (one per line, from imports first, no sections) and format the code with ruff format (90 characters per line, single quotes). [rnix]

  • Add import sorting (I rules) and the formatter settings to the ruff configuration in pyproject.toml. [rnix]

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.1

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.1
File Size Uploaded Provenance Actions
cone_charts-2.0.1.tar.gz 227.9 kB Without provenance Details for cone_charts-2.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 463.3 kB

Release files / cone_charts-2.0.1.tar.gz

Download URL cone_charts-2.0.1.tar.gz
Size 227.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b2096746bb8507b8ac56db26810ee2bb38230a211078b6b4c50a37eb088cecb2
BLAKE2b-256 checksum
How to use checksums
fe14f0bcf5dafc7e4948922a87350067fe9d85c384dcd8cfad17f58702c5948c
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.1-py3-none-any.whl

Download URL cone_charts-2.0.1-py3-none-any.whl
Size 235.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
414c3b9acf9d094e8dbbc0bd3c0282a7f7bb549521d7d8553e01daef029416a8
BLAKE2b-256 checksum
How to use checksums
4bd8df7b3abc280590cb922de40b1b9daf7cc095e3cb6d06b56db5623d3e90f0
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.1

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