Git Product home page Git Product logo

charts's Introduction

Warning If you're wondering what happened to the v7 version please read this: #1 (comment)

What is charts?

Charts is a PHP (Laravel) library to handle all the charts in your application. It supports multiple charting libraries and they allow to be loaded over AJAX with a nice loading animation.

It uses a simple API to create all the JS logic for you. You just need to write a few PHP lines :)

Documentation

The documentation for laravel-charts v6 can be found here, by pressing the image below.

Example screenshot

A sample screenshot of a chartjs chart created using Charts.

License

FOSSA Status

charts's People

Contributors

consoletvs avatar dorqa95 avatar pxpm avatar tabacitu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

charts's Issues

Dataset color

Is there a way to set the dataset color? I have a chart (line) with multiple datasets, and all of them appear gray. Is there a way to set the color of each dataset? I am using chartjs.

Thanks!

Can't show more than 1 chat in one blade [BUG]

Required information

  • Charts Version [e.g. 6]
  • Laravel Version [e.g. 5.8]
  • PHP Version [e.g. 7.2]
  • Frontend JS Library Used: [e.g. Chart.js]

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Code To Reproduce
If applicable, add a code to reproduce the problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

[BUG] Composer install fails for v6.5.5

Required information

  • Charts Version [6.5.5]
  • Laravel Version [8]
  • PHP Version [7.4]
  • Frontend JS Library Used: [Chart.js]

Describe the bug
Composer install fails with this error:

  • Installing consoletvs/charts (6.5.5): Downloading (connecting...)���������������������������Downloading (0%) ����������� Failed to download consoletvs/charts from dist: The "https://codeload.github.com/ConsoleTVs/Charts/legacy.zip/0005d14e4fe6715f4146a4dc3b56add768233001" file could not be downloaded (HTTP/1.1 404 Not Found)
    Now trying to download from source
  • Installing consoletvs/charts (6.5.5): Cloning 0005d14e4f from cache
    0005d14e4fe6715f4146a4dc3b56add768233001 is gone (history was rewritten?)

[RuntimeException]
Failed to execute git checkout '0005d14e4fe6715f4146a4dc3b56add768233001' -- && git reset --hard '0005d14e4fe6715f4146a4dc3b56add768233001' --

fatal: reference is not a tree: 0005d14e4fe6715f4146a4dc3b56add768233001

To Reproduce
Steps to reproduce the behavior:
composer install

Expected behavior
Library is successfully downloaded.

Is chartsian library down?

We noticed that our pipeline is failing, it depnds on ConsoleTVs/Charts, which in turns depend on chartisan/php library.
The github chartisan account is not accessible 404, do you know if there is any work around ?

Class "ConsoleTVs\Charts\Classes\ChartJS\Chart" not found

After following the docs and trying to render my first chart I'm getting this error logged. I've checked the file exists and it is referenced in my chart class. My chart class is referenced in the chart that class that is generating the chart. Any suggestions?

error Uncaught TypeError

when i use the package i see this error
admin:4 Uncaught TypeError: Cannot read properties of null (reading 'getContext')

[BUG] Help, can't install consoletvs/charts (6.5.3) -> 404 Error

Required information

  • Charts Version 6.5.3
  • Laravel Version 5.3
  • PHP Version 7.2
  • Frontend JS Library Used: [e.g. Chart.js]

Describe the bug
composer install produces a 404 error : Failed to download consoletvs/charts from dist

To Reproduce
Steps to reproduce the behavior:

  1. rm -rf vendor/
  2. composer install

Expected behavior
Install consoletvs/charts package.

Screenshots

Code To Reproduce
composer.json contains : "consoletvs/charts": "6.*",
composer install

Desktop (please complete the following information):

  • OS: Ubuntu 22

Additional context
The complete error log :

Cloning a4a8a71c43 from cache
a4a8a71c438a00b95ea74a080ce5bf8916c60918 is gone (history was rewritten?)

[RuntimeException]
Failed to execute git checkout 'a4a8a71c438a00b95ea74a080ce5bf8916c60918' -- && git reset --hard 'a4a8a71c438a00b95ea74a080ce5bf8916c60
918' --

fatal: reference is not a tree: a4a8a71c438a00b95ea74a080ce5bf8916c60918


[QUESTION] Tooltip valueFormatter

Using Echarts as chart library and trying to format the tooltips.
Starting from a set of options like:

$chart->options([
    'tooltip' => [
        'formatter' => '{b0}: {c0}<br />{b1}: {c1}',
    ]
]);

It works perfectly and 'formatter' allows to choose what will be printed in the tooltip.
The matter is I would also like to use the valueFormatter (https://echarts.apache.org/en/option.html#tooltip.valueFormatter) callback to format a number into a currency string, so tried:

$chart->options([
    'tooltip' => [
        'formatter' => '{b0}: {c0}<br />{b1}: {c1}',
        'valueFormatter' => function($value){
            return number_format($value, 2, ',', '.');
        }
    ]
]);

The chart is still working but an error in console is fired on every mouseover on a value bar and no tooltips are showing anymore.

Anyone came to a solution for something similar?
TYVM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.