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

1.1.1 (2026-10-24)

  • Require cone.app<2.0.0. cone.app 2.0 uses Bootstrap 5, the 1.1.x series is for the Bootstrap 3 based cone.app 1.x. [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 1.1.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 1.1.1
File Size Uploaded Provenance Actions
cone_charts-1.1.1.tar.gz 226.1 kB Without provenance Details for cone_charts-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 460.9 kB

Release files / cone_charts-1.1.1.tar.gz

Download URL cone_charts-1.1.1.tar.gz
Size 226.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f00f8dbc12c6be29af3506a17abcca248f1901c1f25cbc4522b4efd16839f9f7
BLAKE2b-256 checksum
How to use checksums
e94288a67afbcb75214f3065e363d5be1389aaf6defc555393e4b2ad7f1a7049
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-1.1.1-py3-none-any.whl

Download URL cone_charts-1.1.1-py3-none-any.whl
Size 234.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50a2eaf7bbd88f668b0543505f49dd9a84a0afbb79274c2844ec31b3f674d061
BLAKE2b-256 checksum
How to use checksums
330fee010755e23a59546141e80ba8363660bcd26461cacb8c2e72667012fb24
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 1.1.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