Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions PHP_VERSIONS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
8.5
8.4
8.3
8.2
8.1
8.2
8.3
8.4
8.5
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ composer require macocci7/php-boxplot
$bp = new Boxplot();

$bp->setData($data)
->create('img/BasicUsage.png');
->create(__DIR__ . '/img/BasicUsage.png');
```
- Result:

Expand Down Expand Up @@ -148,7 +148,7 @@ And Setting Caption can be done as follows:
->labelY('Score')
->caption('Achievement Test Results in 2023')
->legends(['Donald Biden'])
->create('img/AdjustDisplayByMethods.png');
->create(__DIR__ . '/img/AdjustDisplayByMethods.png');
```

- Result:
Expand Down Expand Up @@ -245,7 +245,7 @@ Multiple datasets can be displayed side by side at the same time.
->labelX('Achievement Test')
->labelY('Score')
->caption('Achievement Test Results in 2023')
->create('img/MultipleDataSet.png');
->create(__DIR__ . '/img/MultipleDataSet.png');
```

- Result: [examples/img/MultipleDataSet.png](examples/img/MultipleDataSet.png)
Expand Down Expand Up @@ -380,8 +380,8 @@ Second, Code PHP like this:
use Macocci7\PhpBoxplot\Boxplot;

$bp = new Boxplot();
$bp->config('AdjustDisplayByNeon.neon')
->create('img/AdjustDisplayByNeon.png');
$bp->config(__DIR__ . '/AdjustDisplayByNeon.neon')
->create(__DIR__ . '/img/AdjustDisplayByNeon.png');
```

Then, run the PHP Code.
Expand Down Expand Up @@ -449,7 +449,7 @@ You can Adjust the Display by using Array.

$bp = new Boxplot();
$bp->config($conf)
->create('img/AdjustDisplayByArray.png');
->create(__DIR__ . '/img/AdjustDisplayByArray.png');
```

- Result: [examples/img/AdjustDisplayByArray.png](examples/img/AdjustDisplayByArray.png)
Expand Down Expand Up @@ -492,7 +492,7 @@ You can set transparent background like this.
->labelX('Examination')
->labelY('Score')
->caption('Transparent Background')
->create('img/TransparentBackground.png');
->create(__DIR__ . '/img/TransparentBackground.png');
```

- Result: [examples/img/TransparentBackground.png](examples/img/TransparentBackground.png)
Expand Down Expand Up @@ -548,4 +548,4 @@ You can set transparent background like this.

***

Copyright 2023 - 2025 macocci7
Copyright 2023 - 2026 macocci7
2 changes: 0 additions & 2 deletions conf/Boxplot.neon
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ validConfig:
type: colorCode|null
whiskerWidth:
type: int
fontPath:
type: string
fontSize:
type: number
fontColor:
Expand Down
4 changes: 1 addition & 3 deletions conf/Plotter.neon
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ boxBorderColor: '#3333cc'
boxBorderWidth: 1
whiskerColor: '#3333cc'
whiskerWidth: 1
fontPath: 'fonts/ipaexg.ttf' # IPA ex Gothic 00401
#fontPath: 'fonts/ipaexg.ttf' # IPA ex Gothic 00401
#fontPath: 'fonts/ipaexm.ttf' # IPA ex Mincho 00401
fontSize: 16
fontColor: '#333333'
Expand Down Expand Up @@ -93,8 +93,6 @@ validConfig:
type: colorCode|null
whiskerWidth:
type: int
fontPath:
type: string
fontSize:
type: int|float
fontColor:
Expand Down
2 changes: 1 addition & 1 deletion examples/AdjustDisplayByArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@

$bp = new Boxplot();
$bp->config($conf)
->create('img/AdjustDisplayByArray.png');
->create(__DIR__ . '/img/AdjustDisplayByArray.png');
2 changes: 1 addition & 1 deletion examples/AdjustDisplayByMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
->labelY('Score')
->caption('Achievement Test Results in 2023')
->legends(['Donald Biden'])
->create('img/AdjustDisplayByMethods.png');
->create(__DIR__ . '/img/AdjustDisplayByMethods.png');
4 changes: 2 additions & 2 deletions examples/AdjustDisplayByNeon.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
use Macocci7\PhpBoxplot\Boxplot;

$bp = new Boxplot();
$bp->config('AdjustDisplayByNeon.neon')
->create('img/AdjustDisplayByNeon.png');
$bp->config(__DIR__ . '/AdjustDisplayByNeon.neon')
->create(__DIR__ . '/img/AdjustDisplayByNeon.png');
2 changes: 1 addition & 1 deletion examples/BasicUsage.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
$bp = new Boxplot();

$bp->setData($data)
->create('img/BasicUsage.png');
->create(__DIR__ . '/img/BasicUsage.png');
2 changes: 1 addition & 1 deletion examples/BoxplotExampleCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$faker = Faker\Factory::create();
$bp = new Boxplot();
$filePath = 'img/BoxplotExampleCase.png';
$filePath = __DIR__ . '/img/BoxplotExampleCase.png';

$keys = [
'5/21',
Expand Down
6 changes: 3 additions & 3 deletions examples/DetmersReidBoxplot2023.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

$bp = new Boxplot();
$csvUtil = new CsvUtil();
$csvFileName = 'csv/672282_data.csv';
$csvFileName = __DIR__ . '/csv/672282_data.csv';
$dailyData = $csvUtil->getDailyData($csvFileName);
if (!$dailyData) {
echo "Failed to load CSV data.\n\n";
Expand All @@ -20,8 +20,8 @@
$labels[] = preg_replace('/^\d+\-(\d+)\-(\d+)$/', '$1/$2', $datestring);
}

$filePath01 = 'img/BoxplotDetmersReid2023_01.png';
$filePath02 = 'img/BoxplotDetmersReid2023_02.png';
$filePath01 = __DIR__ . '/img/BoxplotDetmersReid2023_01.png';
$filePath02 = __DIR__ . '/img/BoxplotDetmersReid2023_02.png';

$bp
->setData($dailyData)
Expand Down
2 changes: 1 addition & 1 deletion examples/MultipleDataSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
->labelX('Achievement Test')
->labelY('Score')
->caption('Achievement Test Results in 2023')
->create('img/MultipleDataSet.png');
->create(__DIR__ . '/img/MultipleDataSet.png');
2 changes: 1 addition & 1 deletion examples/TransparentBackground.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
->labelX('Examination')
->labelY('Score')
->caption('Transparent Background')
->create('img/TransparentBackground.png');
->create(__DIR__ . '/img/TransparentBackground.png');
Loading