A package to format data for charts in Panic's Statusboard application

dev-master 2015-12-14 21:30 UTC

This package is not auto-updated.

Last update: 2020-01-10 15:43:05 UTC


This package helps return custom data to be used in the charts for Panic's StatusBoard iOS application. By providing getters and setters for the various fields it aims to make it more clear to new developers what data is required and how it should be formatted. Panic provides this documentation in regards to making custom charts.


Require this package in your composer.json and update composer.

"hopkins/panic": "dev-master"


composer require hopkins/panic

After updating composer, you're all set to start using the Class. You can either new up the class with parameters, or set them as you go.

New with parameters

$data = [
        "title" => "location1",
        "color" => "blue",
        "datapoints" => [
            "title" => '24 Forcast',
            "value" => "70"
        "title" => "location2",
        "color" => "green",
        "datapoints" => [
            "title" => '24 Forcast',
            "value" => "75"

$panic = new \Hopkins\Panic\CustomChart("Chart title","type","xAxisModifications","yAxisModifications","refreshEveryNSeconds");

return $panic->render();

New with setters (same dataset)

$panic = new CustomChart();
$panic->setChartTitle("24 Forcast");
$panic->setXAxis(["showEveryLabel" => true]);
return $panic->render();


This project is licensed using DBAD. Go have a blast.