PHP Classes
elePHPant
Icontem

Laravel Highcharts: Display charts using the Highcharts API

Recommend this page to a friend!
  Info   View files Documentation   View files View files (415)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-10-05 (11 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 87 This week: 1All time: 9,096 This week: 468Up
Version License PHP version Categories
laravelhighcharts 1.0.1The PHP License5PHP 5, Graphics, Web services
Description Author

This package can display charts using the Highcharts API.

It can generate HTML with JavaScript code to configure several aspects of a chart.

The package can configure attributes like the type of chart, chart data, legend, axis, etc..

Recommendations

Chart Graphic Library
I'm looking for a chart library with commercial use license.

  Performance   Level  
Name: DeGraciaMathieu <contact>
Classes: 4 packages by
Country: France France
Innovation award
Innovation award
Nominee: 2x

Details

Codacy Badge Scrutinizer Code Quality <a href="https://styleci.io/repos/69124179"><img src="https://img.shields.io/badge/Built_for-Laravel-orange.svg" alt="Build For Laravel"></a> Latest Version on Packagist Total Downloads

EnergieProduction/Chart

Chart service for Highcharts on Laravel 5

Installation

Run in console below command to download package to your project:

composer require energieproduction/chart

Configuration

For Laravel 5

In /config/app.php add ChartServiceProvider:

EnergieProduction\Chart\ChartServiceProvider::class,

Do not forget to use the scripts from Highcharts on the pages that contains a chart

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

Usage

In progress...

Examples

$chart = app('chart');

$chart->pushSubset('title', function($title){
    $title->pushCriteria(new Criterias\Text('Solar Employment Growth by Sector, 2010-2016'));
});

$chart->pushSubset('subtitle', function($subtitle){
    $subtitle->pushCriteria(new Criterias\Text('Source: thesolarfoundation.com'));
});

$chart->pushSubset('yAxis.title', function($title){
    $title->pushCriteria(new Criterias\Text('Number of Employees'));
});

$chart->pushSubset('legend', function($legend){
    $legend->pushCriteria(new Criterias\Layout('vertical'));
    $legend->pushCriteria(new Criterias\Align('right'));
    $legend->pushCriteria(new Criterias\VerticalAlign('middle'));
});

$chart->pushSubset('plotOptions.series', function($plotOptions){
    $plotOptions->pushCriteria(new Criterias\PointStart(2010));
});

$chart->pushSubset('series', function($series){
    $series->pushCriteria(new Criterias\Name('Installation'));
    $series->pushCriteria(new Criterias\Data([43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]));
});

$chartSolarEmployment = $chart->render();

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
 
<div id='chart'></div>
 
<script type="text/javascript">
$(function () {
    $('chart').highcharts({{$chartSolarEmployment}});
});
</script>

Demo

  Files folder image Files  
File Role Description
Files folder imagesrc (3 files, 4 directories)
Files folder imagetests (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageContracts (3 files)
Files folder imageCriterias (398 files)
Files folder imageExceptions (1 file)
Files folder imageRenderable (4 files)
  Plain text file Chart.php Class Class source
  Plain text file ChartServiceProvider.php Class Class source
  Plain text file Option.php Class Class source

  Files folder image Files  /  src  /  Contracts  
File Role Description
  Plain text file Criteria.php Class Class source
  Plain text file Expression.php Class Class source
  Plain text file Renderable.php Class Class source

  Files folder image Files  /  src  /  Criterias  
File Role Description
  Plain text file ActiveAxisLabelStyle.php Class Class source
  Plain text file ActiveColor.php Class Class source
  Plain text file ActiveDataLabelStyle.php Class Class source
  Plain text file AddSeries.php Class Class source
  Plain text file AfterAnimate.php Class Class source
  Plain text file AfterBreaks.php Class Class source
  Plain text file AfterPrint.php Class Class source
  Plain text file AfterSetExtremes.php Class Class source
  Plain text file Align.php Class Class source
  Plain text file AlignTicks.php Class Class source
  Plain text file AllowDecimals.php Class Class source
  Plain text file AllowDrillToNode.php Class Class source
  Plain text file AllowHTML.php Class Class source
  Plain text file AllowOverlap.php Class Class source
  Plain text file AllowPointDrilldown.php Class Class source
  Plain text file AllowPointSelect.php Class Class source
  Plain text file Alpha.php Class Class source
  Plain text file AlternateGridColor.php Class Class source
  Plain text file AlternateStartingDirection.php Class Class source
  Plain text file Angle.php Class Class source
  Plain text file Animation.php Class Class source
  Plain text file AnimationLimit.php Class Class source
  Plain text file ArrowSize.php Class Class source
  Plain text file Attr.php Class Class source
  Plain text file Attributes.php Class Class source
  Plain text file AutoRotation.php Class Class source
  Plain text file AutoRotationLimit.php Class Class source
  Plain text file AxisLabelPosition.php Class Class source
  Plain text file BackgroundColor.php Class Class source
  Plain text file BaseLength.php Class Class source
  Plain text file BaseWidth.php Class Class source
  Plain text file BeforePrint.php Class Class source
  Plain text file Beta.php Class Class source
  Plain text file BorderColor.php Class Class source
  Plain text file BorderDashStyle.php Class Class source
  Plain text file BorderRadius.php Class Class source
  Plain text file BorderWidth.php Class Class source
  Plain text file BreakSize.php Class Class source
  Plain text file Brightness.php Class Class source
  Plain text file Builder.php Class Class source
  Plain text file Callback.php Class Class source
  Plain text file Categories.php Class Class source
  Plain text file Ceiling.php Class Class source
  Plain text file Center.php Class Class source
  Plain text file Chart.php Class Class source
  Plain text file ChartOptions.php Class Class source
  Plain text file CheckboxClick.php Class Class source
  Plain text file ClassName.php Class Class source
  Plain text file Click.php Class Class source
  Plain text file Color.php Class Class source
  Plain text file ColorByPoint.php Class Class source
  Plain text file ColorCount.php Class Class source
  Plain text file ColorIndex.php Class Class source
  Plain text file Colors.php Class Class source
  Plain text file Colsize.php Class Class source
  Plain text file Columns.php Class Class source
  Plain text file Complete.php Class Class source
  Plain text file ConnectEnds.php Class Class source
  Plain text file ConnectNulls.php Class Class source
  Plain text file ConnectorColor.php Class Class source
  Plain text file ConnectorPadding.php Class Class source
  Plain text file ConnectorWidth.php Class Class source
  Plain text file Crisp.php Class Class source
  Plain text file Criteria.php Class Class source
  Plain text file Crop.php Class Class source
  Plain text file CropThreshold.php Class Class source
  Plain text file Crosshairs.php Class Class source
  Plain text file Csv.php Class Class source
  Plain text file Cursor.php Class Class source
  Plain text file DashStyle.php Class Class source
  Plain text file Data.php Class Class source
  Plain text file DataLabels.php Class Class source
  Plain text file DataParser.php Class Class source
  Plain text file DataURL.php Class Class source
  Plain text file DateFormat.php Class Class source
  Plain text file DateTimeLabelFormats.php Class Class source
  Plain text file DecimalPoint.php Class Class source
  Plain text file DefaultSeriesType.php Class Class source
  Plain text file Defer.php Class Class source
  Plain text file Depth.php Class Class source
  Plain text file DescribeSingleSeries.php Class Class source
  Plain text file Description.php Class Class source
  Plain text file DisplayNegative.php Class Class source
  Plain text file Distance.php Class Class source
  Plain text file Drilldown.php Class Class source
  Plain text file Drillup.php Class Class source
  Plain text file Drillupall.php Class Class source
  Plain text file EdgeColor.php Class Class source
  Plain text file EdgeWidth.php Class Class source
  Plain text file Enabled.php Class Class source
  Plain text file EnableMouseTracking.php Class Class source
  Plain text file EndAngle.php Class Class source
  Plain text file EndColumn.php Class Class source
  Plain text file EndOnTick.php Class Class source
  Plain text file EndRow.php Class Class source
  Plain text file Error.php Class Class source
  Plain text file Events.php Class Class source
  Plain text file ExposeElementToA11y.php Class Class source
  Plain text file FallbackToExportServer.php Class Class source
  Plain text file Filename.php Class Class source
  Plain text file FillColor.php Class Class source
  Plain text file FillOpacity.php Class Class source
  Plain text file FindNearestPointBy.php Class Class source
  Plain text file FirstRowAsNames.php Class Class source
  Plain text file FitToPlot.php Class Class source
  Plain text file Floating.php Class Class source
  Plain text file Floor.php Class Class source
  Plain text file FollowPointer.php Class Class source
  Plain text file FollowTouchMove.php Class Class source
  Plain text file FooterFormat.php Class Class source
  Plain text file Format.php Class Class source
  Plain text file Formatter.php Class Class source
  Plain text file FormAttributes.php Class Class source
  Plain text file From.php Class Class source
  Plain text file GetExtremesFromAll.php Class Class source
  Plain text file GoogleSpreadsheetKey.php Class Class source
  Plain text file GoogleSpreadsheetWorksheet.php Class Class source
  Plain text file GridLineColor.php Class Class source
  Plain text file GridLineDashStyle.php Class Class source
  Plain text file GridLineInterpolation.php Class Class source
  Plain text file GridLineWidth.php Class Class source
  Plain text file GridZIndex.php Class Class source
  Plain text file Grouping.php Class Class source
  Plain text file GroupPadding.php Class Class source
  Plain text file GroupZPadding.php Class Class source
  Plain text file HeaderFormat.php Class Class source
  Plain text file Height.php Class Class source
  Plain text file Hide.php Class Class source
  Plain text file HideDelay.php Class Class source
  Plain text file HideDuration.php Class Class source
  Plain text file Href.php Class Class source
  Plain text file Html.php Class Class source
  Plain text file Id.php Class Class source
  Plain text file IgnoreHiddenPoint.php Class Class source
  Plain text file IgnoreHiddenSeries.php Class Class source
  Plain text file InactiveColor.php Class Class source
  Plain text file Index.php Class Class source
  Plain text file InnerRadius.php Class Class source
  Plain text file InnerSize.php Class Class source
  Plain text file Inside.php Class Class source
  Plain text file InteractByLeaf.php Class Class source
  Plain text file Inverted.php Class Class source
  Plain text file ItemDelimiter.php Class Class source
  Plain text file ItemDistance.php Class Class source
  Plain text file ItemHiddenStyle.php Class Class source
  Plain text file ItemHoverStyle.php Class Class source
  Plain text file ItemMarginBottom.php Class Class source
  Plain text file ItemMarginTop.php Class Class source
  Plain text file ItemStyle.php Class Class source
  Plain text file ItemWidth.php Class Class source
  Plain text file Keys.php Class Class source
  Plain text file LabelFormat.php Class Class source
  Plain text file LabelFormatter.php Class Class source
  Plain text file LabelStyle.php Class Class source
  Plain text file Layout.php Class Class source
  Plain text file LayoutAlgorithm.php Class Class source
  Plain text file LayoutStartingDirection.php Class Class source
  Plain text file LegendIndex.php Class Class source
  Plain text file LegendItemClick.php Class Class source
  Plain text file Level.php Class Class source
  Plain text file LevelIsConstant.php Class Class source
  Plain text file LibURL.php Class Class source
  Plain text file Linecap.php Class Class source
  Plain text file LineColor.php Class Class source
  Plain text file LineDelimiter.php Class Class source
  Plain text file LineHeight.php Class Class source
  Plain text file LineWidth.php Class Class source
  Plain text file LineWidthPlus.php Class Class source
  Plain text file LinkedTo.php Class Class source
  Plain text file Load.php Class Class source
  Plain text file Margin.php Class Class source
  Plain text file MarginBottom.php Class Class source
  Plain text file MarginLeft.php Class Class source
  Plain text file MarginRight.php Class Class source
  Plain text file MarginTop.php Class Class source
  Plain text file Max.php Class Class source
  Plain text file MaxColor.php Class Class source
  Plain text file MaxHeight.php Class Class source
  Plain text file MaxPadding.php Class Class source
  Plain text file MaxPointWidth.php Class Class source
  Plain text file MaxSize.php Class Class source
  Plain text file MaxWidth.php Class Class source
  Plain text file MaxZoom.php Class Class source
  Plain text file MedianColor.php Class Class source
  Plain text file MedianWidth.php Class Class source
  Plain text file MenuItemDefinitions.php Class Class source
  Plain text file MenuItemHoverStyle.php Class Class source
  Plain text file MenuItems.php Class Class source
  Plain text file MenuItemStyle.php Class Class source
  Plain text file MenuStyle.php Class Class source
  Plain text file Min.php Class Class source
  Plain text file MinColor.php Class Class source
  Plain text file MinHeight.php Class Class source
  Plain text file MinorGridLineColor.php Class Class source
  Plain text file MinorGridLineDashStyle.php Class Class source
  Plain text file MinorGridLineWidth.php Class Class source
  Plain text file MinorTickColor.php Class Class source
  Plain text file MinorTickInterval.php Class Class source
  Plain text file MinorTickLength.php Class Class source
  Plain text file MinorTickPosition.php Class Class source
  Plain text file MinorTickWidth.php Class Class source
  Plain text file MinPadding.php Class Class source
  Plain text file MinPointLength.php Class Class source
  Plain text file MinRange.php Class Class source
  Plain text file MinSize.php Class Class source
  Plain text file MinTickInterval.php Class Class source
  Plain text file MinWidth.php Class Class source
  Plain text file MouseOut.php Class Class source
  Plain text file MouseOver.php Class Class source
  Plain text file Name.php Class Class source
  Plain text file NeckHeight.php Class Class source
  Plain text file NeckWidth.php Class Class source
  Plain text file NegativeColor.php Class Class source
  Plain text file NegativeFillColor.php Class Class source
  Plain text file Offset.php Class Class source
  Plain text file Onclick.php Class Class source
  Plain text file OnTableAnchorClick.php Class Class source
  Plain text file Opacity.php Class Class source
  Plain text file Opposite.php Class Class source
  Plain text file OuterRadius.php Class Class source
  Plain text file Overflow.php Class Class source
  Plain text file Overshoot.php Class Class source
  Plain text file Padding.php Class Class source
  Plain text file PanKey.php Class Class source
  Plain text file Panning.php Class Class source
  Plain text file Parsed.php Class Class source
  Plain text file ParseDate.php Class Class source
  Plain text file PinchType.php Class Class source
  Plain text file PlotBackgroundColor.php Class Class source
  Plain text file PlotBackgroundImage.php Class Class source
  Plain text file PlotBorderColor.php Class Class source
  Plain text file PlotBorderWidth.php Class Class source
  Plain text file PlotShadow.php Class Class source
  Plain text file PointBreak.php Class Class source
  Plain text file PointDateFormat.php Class Class source
  Plain text file PointDateFormatter.php Class Class source
  Plain text file PointDescriptionFormatter.php Class Class source
  Plain text file PointDescriptionThreshold.php Class Class source
  Plain text file PointFormat.php Class Class source
  Plain text file PointFormatter.php Class Class source
  Plain text file PointInBreak.php Class Class source
  Plain text file PointInterval.php Class Class source
  Plain text file PointIntervalUnit.php Class Class source
  Plain text file PointPadding.php Class Class source
  Plain text file PointPlacement.php Class Class source
  Plain text file PointRange.php Class Class source
  Plain text file PointStart.php Class Class source
  Plain text file PointWidth.php Class Class source
  Plain text file Polar.php Class Class source
  Plain text file Position.php Class Class source
  Plain text file Positioner.php Class Class source
  Plain text file PrintMaxWidth.php Class Class source
  Plain text file Radius.php Class Class source
  Plain text file RadiusPlus.php Class Class source
  Plain text file RearLength.php Class Class source
  Plain text file Redraw.php Class Class source
  Plain text file Reflow.php Class Class source
  Plain text file RelativeTo.php Class Class source
  Plain text file Remove.php Class Class source
  Plain text file Render.php Class Class source
  Plain text file RenderTo.php Class Class source
  Plain text file Repeat.php Class Class source
  Plain text file ReserveSpace.php Class Class source
  Plain text file Reversed.php Class Class source
  Plain text file ReversedStacks.php Class Class source
  Plain text file Rotation.php Class Class source
  Plain text file Rounded.php Class Class source
  Plain text file Rows.php Class Class source
  Plain text file Rowsize.php Class Class source
  Plain text file Rtl.php Class Class source
  Plain text file Scale.php Class Class source
  Plain text file ScreenReaderSectionFormatter.php Class Class source
  Plain text file Select.php Class Class source
  Plain text file Selected.php Class Class source
  Plain text file Selection.php Class Class source
  Plain text file SelectionMarkerFill.php Class Class source
  Plain text file Series.php Class Class source
  Plain text file SeriesDescriptionFormatter.php Class Class source
  Plain text file SeriesMapping.php Class Class source
  Plain text file SetExtremes.php Class Class source
  Plain text file Shadow.php Class Class source
  Plain text file Shape.php Class Class source
  Plain text file Shared.php Class Class source
  Plain text file Show.php Class Class source
  Plain text file ShowAxes.php Class Class source
  Plain text file ShowCheckbox.php Class Class source
  Plain text file ShowDuration.php Class Class source
  Plain text file ShowEmpty.php Class Class source
  Plain text file ShowFirstLabel.php Class Class source
  Plain text file ShowInLegend.php Class Class source
  Plain text file ShowLastLabel.php Class Class source
  Plain text file Size.php Class Class source
  Plain text file SizeBy.php Class Class source
  Plain text file SizeByAbsoluteValue.php Class Class source
  Plain text file SkipKeyboardNavigation.php Class Class source
  Plain text file SkipNullPoints.php Class Class source
  Plain text file SlicedOffset.php Class Class source
  Plain text file Snap.php Class Class source
  Plain text file SoftConnector.php Class Class source
  Plain text file SoftMax.php Class Class source
  Plain text file SoftMin.php Class Class source
  Plain text file SoftThreshold.php Class Class source
  Plain text file SortIndex.php Class Class source
  Plain text file SourceHeight.php Class Class source
  Plain text file SourceWidth.php Class Class source
  Plain text file Spacing.php Class Class source
  Plain text file SpacingBottom.php Class Class source
  Plain text file SpacingLeft.php Class Class source
  Plain text file SpacingRight.php Class Class source
  Plain text file SpacingTop.php Class Class source
  Plain text file Split.php Class Class source
  Plain text file SquareSymbol.php Class Class source
  Plain text file Stack.php Class Class source
  Plain text file Stacking.php Class Class source
  Plain text file StaggerLines.php Class Class source
  Plain text file StartAngle.php Class Class source
  Plain text file StartColumn.php Class Class source
  Plain text file StartOfWeek.php Class Class source
  Plain text file StartOnTick.php Class Class source
  Plain text file StartRow.php Class Class source
  Plain text file States.php Class Class source
  Plain text file StemColor.php Class Class source
  Plain text file StemDashStyle.php Class Class source
  Plain text file StemWidth.php Class Class source
  Plain text file Step.php Class Class source
  Plain text file StickyTracking.php Class Class source
  Plain text file Stops.php Class Class source
  Plain text file Style.php Class Class source
  Plain text file SwitchRowsAndColumns.php Class Class source
  Plain text file Symbol.php Class Class source
  Plain text file SymbolFill.php Class Class source
  Plain text file SymbolHeight.php Class Class source
  Plain text file SymbolPadding.php Class Class source
  Plain text file SymbolRadius.php Class Class source
  Plain text file SymbolSize.php Class Class source
  Plain text file SymbolStroke.php Class Class source
  Plain text file SymbolStrokeWidth.php Class Class source
  Plain text file SymbolWidth.php Class Class source
  Plain text file SymbolX.php Class Class source
  Plain text file SymbolY.php Class Class source
  Plain text file Table.php Class Class source
  Plain text file TabThroughPoints.php Class Class source
  Plain text file Text.php Class Class source
  Plain text file TextAlign.php Class Class source
  Plain text file Theme.php Class Class source
  Plain text file Thickness.php Class Class source
  Plain text file Threshold.php Class Class source
  Plain text file TickAmount.php Class Class source
  Plain text file TickColor.php Class Class source
  Plain text file TickInterval.php Class Class source
  Plain text file TickLength.php Class Class source
  Plain text file TickmarkPlacement.php Class Class source
  Plain text file TickPixelInterval.php Class Class source
  Plain text file TickPosition.php Class Class source
  Plain text file TickPositioner.php Class Class source
  Plain text file TickPositions.php Class Class source
  Plain text file TickWidth.php Class Class source
  Plain text file To.php Class Class source
  Plain text file TopWidth.php Class Class source
  Plain text file TrackByArea.php Class Class source
  Plain text file TurboThreshold.php Class Class source
  Plain text file Type.php Class Class source
  Plain text file TypeDescription.php Class Class source
  Plain text file UniqueNames.php Class Class source
  Plain text file Units.php Class Class source
  Plain text file Unselect.php Class Class source
  Plain text file UpColor.php Class Class source
  Plain text file Update.php Class Class source
  Plain text file Url.php Class Class source
  Plain text file UseHTML.php Class Class source
  Plain text file Value.php Class Class source
  Plain text file ValueDecimals.php Class Class source
  Plain text file ValuePrefix.php Class Class source
  Plain text file ValueSuffix.php Class Class source
  Plain text file VerticalAlign.php Class Class source
  Plain text file ViewDistance.php Class Class source
  Plain text file Visible.php Class Class source
  Plain text file WhiskerColor.php Class Class source
  Plain text file WhiskerLength.php Class Class source
  Plain text file WhiskerWidth.php Class Class source
  Plain text file Width.php Class Class source
  Plain text file WidthAdjust.php Class Class source
  Plain text file Wrap.php Class Class source
  Plain text file X.php Class Class source
  Plain text file XAxis.php Class Class source
  Plain text file XDateFormat.php Class Class source
  Plain text file XHigh.php Class Class source
  Plain text file XLow.php Class Class source
  Plain text file Y.php Class Class source
  Plain text file YAxis.php Class Class source
  Plain text file YHigh.php Class Class source
  Plain text file YLow.php Class Class source
  Plain text file ZIndex.php Class Class source
  Plain text file ZMax.php Class Class source
  Plain text file ZMin.php Class Class source
  Plain text file ZoneAxis.php Class Class source
  Plain text file ZoomType.php Class Class source
  Plain text file ZThreshold.php Class Class source

  Files folder image Files  /  src  /  Exceptions  
File Role Description
  Plain text file DotNotationNotAvailableException.php Class Class source

  Files folder image Files  /  src  /  Renderable  
File Role Description
  Plain text file Criteria.php Class Class source
  Plain text file Expression.php Class Class source
  Plain text file Render.php Class Class source
  Plain text file Subset.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file Test.php Class Class source
  Plain text file TestRenderable.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:87
This week:1
All time:9,096
This week:468Up