Skip to content

Commit 5e80415

Browse files
authored
Merge pull request #37 from xdev-software/develop
Release 1.0.1
2 parents 36721e8 + 3609f4c commit 5e80415

File tree

16 files changed

+116
-64
lines changed

16 files changed

+116
-64
lines changed

.github/workflows/checkBuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
distribution: [temurin]
2626

2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929

3030
- name: Set up JDK
3131
uses: actions/setup-java@v3

.github/workflows/release.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
check_code: # Validates the code
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020

2121
- name: Set up JDK
2222
uses: actions/setup-java@v3
@@ -52,7 +52,7 @@ jobs:
5252
outputs:
5353
upload_url: ${{ steps.create_release.outputs.upload_url }}
5454
steps:
55-
- uses: actions/checkout@v3
55+
- uses: actions/checkout@v4
5656

5757
- name: Configure Git
5858
run: |
@@ -111,7 +111,7 @@ jobs:
111111
runs-on: ubuntu-latest
112112
needs: [prepare_release]
113113
steps:
114-
- uses: actions/checkout@v3
114+
- uses: actions/checkout@v4
115115

116116
- name: Init Git and pull
117117
run: |
@@ -143,7 +143,7 @@ jobs:
143143
runs-on: ubuntu-latest
144144
needs: [prepare_release]
145145
steps:
146-
- uses: actions/checkout@v3
146+
- uses: actions/checkout@v4
147147

148148
- name: Init Git and pull
149149
run: |
@@ -197,7 +197,7 @@ jobs:
197197
runs-on: ubuntu-latest
198198
needs: [publish_central]
199199
steps:
200-
- uses: actions/checkout@v3
200+
- uses: actions/checkout@v4
201201

202202
- name: Init Git and pull
203203
run: |
@@ -223,9 +223,12 @@ jobs:
223223
git push origin
224224
225225
- name: pull-request
226-
uses: repo-sync/pull-request@v2
227-
with:
228-
destination_branch: "develop"
229-
pr_title: "Sync back"
230-
pr_body: "An automated PR to sync changes back"
231-
226+
env:
227+
GH_TOKEN: ${{ github.token }}
228+
run: |
229+
gh_pr_up() {
230+
gh pr create "$@" || gh pr edit "$@"
231+
}
232+
gh_pr_up -B "develop" \
233+
--title "Sync back" \
234+
--body "An automated PR to sync changes back"

.github/workflows/sonar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# Dependabot PRs have no access to secrets (SONAR_TOKEN) -> Ignore them
2727
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'dependabot/') }}
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
3232

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
publish_central: # Publish the code to central
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Set up JDK OSSRH
1616
uses: actions/setup-java@v3

.github/workflows/update-from-template.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727

2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
# Required because otherwise there are always changes detected when executing diff/rev-list
3232
fetch-depth: 0
@@ -81,12 +81,14 @@ jobs:
8181
echo "abort=0" >> $GITHUB_OUTPUT
8282
8383
- name: pull-request
84-
uses: repo-sync/pull-request@v2
8584
if: steps.main.outputs.abort == 0
86-
with:
87-
github_token: ${{ secrets.GITHUB_TOKEN }}
88-
source_branch: ${{ env.UPDATE_BRANCH }}
89-
destination_branch: ${{ steps.main.outputs.current_branch }}
90-
pr_title: "Update from template"
91-
pr_body: "An automated PR to sync changes from the template into this repo"
92-
85+
env:
86+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
run: |
88+
gh_pr_up() {
89+
gh pr create "$@" || gh pr edit "$@"
90+
}
91+
gh_pr_up -B "${{ steps.main.outputs.current_branch }}" \
92+
-H "${{ env.UPDATE_BRANCH }}" \
93+
--title "Update from template" \
94+
--body "An automated PR to sync changes from the template into this repo"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.0.1
2+
* Added support for [stacked bar chart with groups](https://www.chartjs.org/docs/latest/samples/bar/stacked-groups.html)
3+
14
## 1.0.0
25
Initial release
36

@@ -11,3 +14,4 @@ Noteworthy changes compared to [Chart.java](https://github.com/mdewilde/chart):
1114
* [4.x Migration Guide](https://www.chartjs.org/docs/4.3.0/migration/v4-migration.html)
1215
* JSON is no longer pretty printed by default due to performance reasons
1316
* Implemented integration tests
17+
* Requires Java 17

CONTRIBUTING.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
## Contributing
22

3-
We would absolutely love to get the community involved, and we welcome any form of contributions – comments and questions on different communication channels, issues and pull request in the repositories, and anything that you build and share using our components.
3+
We would absolutely love to get the community involved, and we welcome any form of contributions – comments and questions on different communication channels, issues and pull request and anything that you build and share using our components.
44

5-
### Get in touch with the team
5+
### Communication channels
6+
* Communication is primarily done using issues.
7+
* If you need support as soon as possible and you can't wait for any pull request, feel free to use [our support](https://xdev.software/en/services/support).
8+
* As a last resort measure or on otherwise important matter you may also [contact us directly](https://xdev.software/en/about-us/contact).
69

7-
Twitter: https://twitter.com/xdevsoftware
8-
<br/>
9-
10+
### Ways to help
11+
* **Report bugs**<br/>Create an issue or send a pull request
12+
* **Send pull requests**<br/>If you want to contribute code, check out the development instructions below.
13+
* However when contributing new features, please first discuss the change you wish to make via issue with the owners of this repository before making a change. Otherwise your work might be rejected and your effort was pointless.
1014

11-
### Some ways to help:
12-
13-
- **Report bugs**: File issues on GitHub.
14-
- **Send pull requests**: If you want to contribute code, check out the development instructions below.
15-
16-
We encourage you to read the [contribution instructions by GitHub](https://guides.github.com/activities/contributing-to-open-source/#contributing) also.
15+
We also encourage you to read the [contribution instructions by GitHub](https://docs.github.com/en/get-started/quickstart/contributing-to-projects).
1716

1817
## Developing
1918

@@ -26,7 +25,7 @@ You should have the following things installed:
2625
### Recommended setup
2726
* Install ``IntelliJ`` (Community Edition is sufficient)
2827
* Install the following plugins:
29-
* [Save Actions](https://plugins.jetbrains.com/plugin/7642-save-actions) - Provides save actions, like running the formatter or adding ``final`` to fields
28+
* [Save Actions](https://plugins.jetbrains.com/plugin/22113) - Provides save actions, like running the formatter or adding ``final`` to fields
3029
* [SonarLint](https://plugins.jetbrains.com/plugin/7973-sonarlint) - CodeStyle/CodeAnalysis
3130
* [Checkstyle-IDEA](https://plugins.jetbrains.com/plugin/1065-checkstyle-idea) - CodeStyle/CodeAnalysis
3231
* Import the project

chartjs-java-model-demo/pom.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,7 @@
1616
<url>https://xdev.software</url>
1717
</organization>
1818

19-
<licenses>
20-
<license>
21-
<name>Apache License, Version 2.0</name>
22-
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
23-
</license>
24-
</licenses>
25-
2619
<properties>
27-
<license.licenseName>apache_v2</license.licenseName>
28-
2920
<javaVersion>17</javaVersion>
3021
<maven.compiler.release>${javaVersion}</maven.compiler.release>
3122

@@ -58,11 +49,10 @@
5849
</compilerArgs>
5950
</configuration>
6051
</plugin>
61-
6252
<plugin>
6353
<groupId>org.apache.maven.plugins</groupId>
6454
<artifactId>maven-assembly-plugin</artifactId>
65-
<version>3.5.0</version>
55+
<version>3.6.0</version>
6656
<configuration>
6757
<archive>
6858
<manifest>

chartjs-java-model/pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4949
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5050

51-
<slf4j-version>2.0.7</slf4j-version>
51+
<slf4j-version>2.0.9</slf4j-version>
5252
<log4j-version>2.20.0</log4j-version>
53-
<testcontainers-version>1.18.0</testcontainers-version>
53+
<testcontainers-version>1.19.1</testcontainers-version>
5454

5555
<!-- by default run no tests as Docker is required -->
5656
<skipTests>true</skipTests>
@@ -95,7 +95,7 @@
9595
<dependency>
9696
<groupId>com.fasterxml.jackson.core</groupId>
9797
<artifactId>jackson-databind</artifactId>
98-
<version>2.15.0</version>
98+
<version>2.15.2</version>
9999
</dependency>
100100

101101
<!-- Tests -->
@@ -129,7 +129,7 @@
129129
<dependency>
130130
<groupId>org.junit.jupiter</groupId>
131131
<artifactId>junit-jupiter</artifactId>
132-
<version>5.9.3</version>
132+
<version>5.10.0</version>
133133
<scope>test</scope>
134134
</dependency>
135135

@@ -157,7 +157,7 @@
157157
<dependency>
158158
<groupId>org.seleniumhq.selenium</groupId>
159159
<artifactId>selenium-chrome-driver</artifactId>
160-
<version>4.9.0</version>
160+
<version>4.10.0</version>
161161
<scope>test</scope>
162162
</dependency>
163163
</dependencies>
@@ -167,7 +167,7 @@
167167
<plugin>
168168
<groupId>com.mycila</groupId>
169169
<artifactId>license-maven-plugin</artifactId>
170-
<version>4.2</version>
170+
<version>4.3</version>
171171
<configuration>
172172
<properties>
173173
<email>${project.organization.url}</email>
@@ -207,7 +207,7 @@
207207
<plugin>
208208
<groupId>org.apache.maven.plugins</groupId>
209209
<artifactId>maven-javadoc-plugin</artifactId>
210-
<version>3.5.0</version>
210+
<version>3.6.0</version>
211211
<executions>
212212
<execution>
213213
<id>attach-javadocs</id>
@@ -225,7 +225,7 @@
225225
<plugin>
226226
<groupId>org.apache.maven.plugins</groupId>
227227
<artifactId>maven-source-plugin</artifactId>
228-
<version>3.2.1</version>
228+
<version>3.3.0</version>
229229
<executions>
230230
<execution>
231231
<id>attach-sources</id>
@@ -240,7 +240,7 @@
240240
<plugin>
241241
<groupId>org.apache.maven.plugins</groupId>
242242
<artifactId>maven-surefire-plugin</artifactId>
243-
<version>3.0.0</version>
243+
<version>3.1.2</version>
244244
<configuration>
245245
<skipTests>${skipTests}</skipTests>
246246
</configuration>
@@ -261,7 +261,7 @@
261261
<plugin>
262262
<groupId>org.apache.maven.plugins</groupId>
263263
<artifactId>maven-gpg-plugin</artifactId>
264-
<version>3.0.1</version>
264+
<version>3.1.0</version>
265265
<executions>
266266
<execution>
267267
<id>sign-artifacts</id>

chartjs-java-model/src/main/java/software/xdev/chartjs/model/dataset/BarDataset.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class BarDataset extends BackgroundBorderHoverDataset<BarDataset, BigDeci
2929
private String xAxisID;
3030
private String yAxisID;
3131
private final List<BorderSkipped> borderSkipped = new OptionalArray<>();
32-
32+
private String stack;
3333

3434
public String getLabel()
3535
{
@@ -84,4 +84,15 @@ public BarDataset setBorderSkipped(final List<BorderSkipped> borderSkipped)
8484
}
8585
return this;
8686
}
87+
88+
public String getStack()
89+
{
90+
return this.stack;
91+
}
92+
93+
public BarDataset setStack(final String stack)
94+
{
95+
this.stack = stack;
96+
return this;
97+
}
8798
}

0 commit comments

Comments
 (0)