Compare commits
25 Commits
@portaljs/
...
@portaljs/
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3246ee7f8 | ||
|
|
40d80d2282 | ||
|
|
e0e720338f | ||
|
|
4f8b1b1e96 | ||
|
|
362afcc133 | ||
|
|
c165b3cc44 | ||
|
|
261a2a081e | ||
|
|
d27857f490 | ||
|
|
b3ba263bd8 | ||
|
|
cb774d0ad0 | ||
|
|
b48f71ecef | ||
|
|
07b3235647 | ||
|
|
d0c2ee1e71 | ||
|
|
bc180189cb | ||
|
|
39c862627d | ||
|
|
b7158a5be6 | ||
|
|
ee87c4f623 | ||
|
|
4141af0e82 | ||
|
|
7d36d22671 | ||
|
|
eab2d65113 | ||
|
|
51d0a7692e | ||
|
|
cdd90ac384 | ||
|
|
dcf6400304 | ||
|
|
247b2412d6 | ||
|
|
1ad9b85e02 |
@@ -53,6 +53,10 @@ export function Header() {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Contributing',
|
||||
href: '/contributing',
|
||||
},
|
||||
{
|
||||
title: 'Resources',
|
||||
href: '/resources',
|
||||
|
||||
36
examples/openspending/content/contributing.md
Normal file
36
examples/openspending/content/contributing.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# How to contribute
|
||||
|
||||
OpenSpending is a project that aims to make public financial data more accessible, understandable, and usable. It is powered by PortalJS, a framework for building data portals that are fast, secure, and easy to customize.
|
||||
|
||||
If you have any questions, the best place to get answers is to reach to us on [Discord](https://discord.gg/xJrxCbkP)
|
||||
|
||||
We welcome contributions from anyone who is interested in improving OpenSpending and making it more useful for the public. There are many ways you can contribute to the project, such as:
|
||||
|
||||
- Submitting datasets for evaluation and inclusion in OpenSpending
|
||||
- Reporting bugs or issues with the website or the data
|
||||
- Suggesting new features or enhancements
|
||||
- Providing feedback or ideas
|
||||
- Helping other users or answering questions
|
||||
|
||||
## Submitting a contribution
|
||||
|
||||
The main platform for communication and collaboration for OpenSpending is Github, if you want to interact with us you can o so by submitting an issue.
|
||||
|
||||
If you want to submit a dataset for evaluation and inclusion in OpenSpending, you will need to create an issue on Github using this template:
|
||||
|
||||
```markdown
|
||||
Title: [Dataset Submission] Name of the dataset (This will be the name of the repo where your datasets will be stored)
|
||||
Readme: A description of your data to include in the new repo that will be created
|
||||
Datapackage: All our datasets require a datapackage following the [frictionless spec](https://specs.frictionlessdata.io/) more specific the [fiscal version](https://specs.frictionlessdata.io/fiscal-data-package/)
|
||||
```
|
||||
|
||||
Please make sure that the dataset meets the following criteria before submitting it:
|
||||
|
||||
- The dataset contains public financial data (e.g., budgets, expenditures, revenues, contracts)
|
||||
- The dataset is open and free to use (e.g., no restrictions on access or reuse)
|
||||
- The dataset is structured and machine-readable (e.g., no scanned images or PDFs)
|
||||
- The dataset has a datapackage containing metadata and documentation (e.g., descriptions, definitions, schemas)
|
||||
|
||||
If you have any questions or doubts about submitting a dataset, please contact us on Github or join our [Discord server](https://discord.gg/xJrxCbkP), where you can chat with other contributors and get support from the OpenSpending team.
|
||||
|
||||
We appreciate your interest and involvement in OpenSpending, and we look forward to working with you on making public financial data more open and transparent. Thank you for your contribution! 😊
|
||||
@@ -3,7 +3,7 @@ title: Sample Data Story
|
||||
date: 06/06/2023
|
||||
---
|
||||
|
||||
This is a sample data story, you can add charts
|
||||
The below chart clearly shows the steep upward trend of oil prices these are largely due to social-political factors and civil unrest:
|
||||
|
||||
<LineChart
|
||||
data="https://raw.githubusercontent.com/datasets/oil-prices/main/data/wti-year.csv"
|
||||
@@ -12,23 +12,26 @@ This is a sample data story, you can add charts
|
||||
yAxis="Price"
|
||||
/>
|
||||
|
||||
Or you can add previews
|
||||
But to really understand the different global factors that influence the price of a commodity like oil the long term trends as shown above is not adequate.
|
||||
|
||||
When considering the yearly fluctuations it is often beneficial to filter certain time periods.
|
||||
|
||||
One can use the below preview to filter year periods. Alternatively, if you want to consider the points in time when the price of oil was the highest the price range can also be filtered.
|
||||
|
||||
|
||||
|
||||
<FlatUiTable url="https://raw.githubusercontent.com/datasets/oil-prices/main/data/wti-year.csv" />
|
||||
|
||||
And you can of course add markdown
|
||||
|
||||
## Subtitles
|
||||
|
||||
- Lists
|
||||
- Lists
|
||||
|
||||
You can also add mermaid charts
|
||||
Careful data analysis has identified instability albeit economic or political to be the major driver of oil price flatuations
|
||||
|
||||
```mermaid
|
||||
graph TD;
|
||||
A-->B;
|
||||
A-->C;
|
||||
B-->D;
|
||||
graph LR;
|
||||
A[Socio-Political Instability]-->B[War & Civil Unrest];
|
||||
A-->C[Economic Factors];
|
||||
B-->D[Price Increase];
|
||||
C-->D;
|
||||
```
|
||||
|
||||
___
|
||||
|
||||
**To find the raw data used in this article visit https://github.com/datasets/oil-prices/**
|
||||
|
||||
@@ -0,0 +1,158 @@
|
||||
---
|
||||
title: Where the European Structural and Investment Funds go?
|
||||
date: 2023-06-08
|
||||
authors: ['Anuar Ustayev']
|
||||
---
|
||||
|
||||
European Structural and Investment Funds (ESIF) is a financial instrument used by the European Union (EU) to support regional development and economic cohesion among its member states. The ESIF combines several funds to provide financial assistance to regions and cities in the EU with the aim of reducing economic disparities and promoting sustainable growth.
|
||||
|
||||
In this data story, our objective is to determine which country benefits the most from the ESIF funds and identify the region within the EU that receives the highest amount of funding.
|
||||
|
||||
To begin our analysis, we are using data on the allocation of ESIF funds across EU member states and their respective regions. These datasets are provided by previous work at OpenSpending project. See available datasets:
|
||||
|
||||
- Full dataset: https://www.openspending.org/@os-data/complete-european-esif-funds-beneficiaries-2007-2020
|
||||
- By country, e.g., this is for Austria: https://www.openspending.org/@os-data/complete-european-esif-funds-beneficiaries-2007-2020-filtered-by-at
|
||||
|
||||
The data provide insights into the financial assistance provided by the European Union to support regional development and economic cohesion:
|
||||
|
||||
<FlatUiTable url="https://storage.openspending.org/complete-european-esif-funds-beneficiaries-2007-2020/eu-esif-funds-beneficiaries-2007-2020-full.csv" />
|
||||
|
||||
After processing the available datasets we have derived an aggregated data resource that groups data by country which enables us to understand where the most funding went between 2007 and 2020. Notice that maximum amounts in each column are highlighted in the table but they might be in local currencies so check the 'currency' field:
|
||||
|
||||
<FlatUiTable url="https://storage.openspending.org/eu-esif-funds-beneficiaries-2007-2020-full-aggregated-by-country.csv" />
|
||||
|
||||
Quick observations:
|
||||
|
||||
- The Czech Republic has the EU cofinancing amount of CZK 2,731,165,279,234 which is approximately EUR 115 billions.
|
||||
- Poland has the EU cofinancing amount of PLN 302,958,765,476 which is approximately EUR 67 billions.
|
||||
- Other countries that use local currencies do not have significant amounts when comparing to above two nations.
|
||||
|
||||
So let's convert all currencies to ~EUR but only include 'eu_cofinancing_amount' values as we will use it for comparison:
|
||||
|
||||
<FlatUiTable rawCsv="beneficiary_country_code,eu_cofinancing_amount
|
||||
AT,0.0
|
||||
BE,858388537.42
|
||||
BG,0.0
|
||||
CY,0.0
|
||||
CZ,115591108113
|
||||
DE,912803359.21
|
||||
DK,492017672
|
||||
EE,5419641772.0
|
||||
EL,0.0
|
||||
ES,0.0
|
||||
FI,2858282488.0
|
||||
FR,15027864492.94
|
||||
HR,0.0
|
||||
HU,0.0
|
||||
IE,0.0
|
||||
IT,34860253672.98
|
||||
LT,6750675528.74
|
||||
LU,30852529.89
|
||||
LV,0.0
|
||||
MT,0.0
|
||||
NL,0.0
|
||||
PL,67537688711
|
||||
PT,23800568868.02
|
||||
RO,19970864938.12
|
||||
SE,0.0
|
||||
SI,4576151396.24
|
||||
SK,12295960193.92
|
||||
UK,12829255012.10" />
|
||||
|
||||
With this data table we can easily see top countries by funding. Note that you can use the table component above to sort values by values in 'eu_cofinancing_amount' column which helps you to quickly see top countries. Let's build a quick visualization to make it even more obvious:
|
||||
|
||||
<Vega
|
||||
data={{
|
||||
table: [
|
||||
{
|
||||
x: "LU",
|
||||
y: 30852529.89
|
||||
},
|
||||
{
|
||||
x: "DK",
|
||||
y: 492017672
|
||||
},
|
||||
{
|
||||
x: "BE",
|
||||
y: 858388537.42
|
||||
},
|
||||
{
|
||||
x: "DE",
|
||||
y: 912803359.21
|
||||
},
|
||||
{
|
||||
x: "FI",
|
||||
y: 2858282488
|
||||
},
|
||||
{
|
||||
x: "SI",
|
||||
y: 4576151396.24
|
||||
},
|
||||
{
|
||||
x: "EE",
|
||||
y: 5419641772
|
||||
},
|
||||
{
|
||||
x: "LT",
|
||||
y: 6750675528.74
|
||||
},
|
||||
{
|
||||
x: "SK",
|
||||
y: 12295960193.92
|
||||
},
|
||||
{
|
||||
x: "UK",
|
||||
y: 12829255012.1
|
||||
},
|
||||
{
|
||||
x: "FR",
|
||||
y: 15027864492.94
|
||||
},
|
||||
{
|
||||
x: "RO",
|
||||
y: 19970864938.12
|
||||
},
|
||||
{
|
||||
x: "PT",
|
||||
y: 23800568868.02
|
||||
},
|
||||
{
|
||||
x: "IT",
|
||||
y: 34860253672.98
|
||||
},
|
||||
{
|
||||
x: "PL",
|
||||
y: 67537688711
|
||||
},
|
||||
{
|
||||
x: "CZ",
|
||||
y: 115591108113
|
||||
}
|
||||
]
|
||||
}}
|
||||
spec={{
|
||||
$schema: 'https://vega.github.io/schema/vega-lite/v4.json',
|
||||
data: {
|
||||
name: 'table'
|
||||
},
|
||||
encoding: {
|
||||
x: {
|
||||
field: 'x',
|
||||
type: 'ordinal'
|
||||
},
|
||||
y: {
|
||||
field: 'y',
|
||||
type: 'quantitative'
|
||||
}
|
||||
},
|
||||
mark: 'bar'
|
||||
}}
|
||||
/>
|
||||
|
||||
Based on the bar chart above we can conclude that the following 3 countries have received the most amounts from ESIF fund:
|
||||
|
||||
1. Czech Republic - EUR ~116b.
|
||||
2. Poland - EUR ~68b.
|
||||
3. Italy - EUR ~35b.
|
||||
|
||||
_This data story was created by using Datopian's PortalJS framework. You can learn more about the framework by visiting https://portaljs.org/_
|
||||
@@ -1,13 +1,11 @@
|
||||
{
|
||||
"name": "portaljs",
|
||||
"workspaces": [
|
||||
"./packages/*"
|
||||
],
|
||||
"workspaces": ["./packages/*"],
|
||||
"version": "0.0.0",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"changeset": "changeset",
|
||||
"prerelease": "nx affected --targets=lint,test",
|
||||
"prerelease": "nx run-many --targets=lint,test,build --projects=tag:test",
|
||||
"release": "changeset publish"
|
||||
},
|
||||
"private": true,
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
"scripts": {
|
||||
"build": "tsc && vite build && npm run build-tailwind",
|
||||
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"build-tailwind": "NODE_ENV=production npx tailwindcss -o ./dist/styles.css --minify"
|
||||
"build-tailwind": "NODE_ENV=production npx tailwindcss -o ./dist/styles.css --minify",
|
||||
"prepublish": "npm run build"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^18.2.0",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @portaljs/components
|
||||
|
||||
## 0.1.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [`40d80d2`](https://github.com/datopian/portaljs/commit/40d80d2282bf8464c1aafb393975065078ad9ea3) Thanks [@olayway](https://github.com/olayway)! - Fix: missing files in the published package.
|
||||
|
||||
## 0.1.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@portaljs/components",
|
||||
"version": "0.1.9",
|
||||
"version": "0.1.10",
|
||||
"type": "module",
|
||||
"description": "https://portaljs.org",
|
||||
"keywords": [
|
||||
@@ -16,7 +16,8 @@
|
||||
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"build-storybook": "storybook build",
|
||||
"build-tailwind": "NODE_ENV=production npx tailwindcss -o ./dist/styles.css --minify"
|
||||
"build-tailwind": "NODE_ENV=production npx tailwindcss -o ./dist/styles.css --minify",
|
||||
"prepublish": "npm run build"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^18.2.0",
|
||||
|
||||
13
packages/core/CHANGELOG.md
Normal file
13
packages/core/CHANGELOG.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# @portaljs/core
|
||||
|
||||
## 1.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [`40d80d2`](https://github.com/datopian/portaljs/commit/40d80d2282bf8464c1aafb393975065078ad9ea3) Thanks [@olayway](https://github.com/olayway)! - Fix: missing files in the published package.
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [`b7158a5`](https://github.com/datopian/portaljs/commit/b7158a5be668018d9b947f9c9d63fa30fa91d18b) Thanks [@olayway](https://github.com/olayway)! - Fix what's getting published to npm.
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@portaljs/core",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"description": "Core Portal.JS components, configs and utils.",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -16,6 +16,12 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublish": "nx build core"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"dependencies": {
|
||||
|
||||
@@ -17,13 +17,7 @@
|
||||
"generateExportsField": true,
|
||||
"rollupConfig": "@nrwl/react/plugins/bundle-rollup",
|
||||
"compiler": "babel",
|
||||
"assets": [
|
||||
{
|
||||
"glob": "packages/core/README.md",
|
||||
"input": ".",
|
||||
"output": "."
|
||||
}
|
||||
]
|
||||
"assets": []
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
|
||||
13
packages/remark-callouts/CHANGELOG.md
Normal file
13
packages/remark-callouts/CHANGELOG.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# @portaljs/remark-callouts
|
||||
|
||||
## 1.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [`40d80d2`](https://github.com/datopian/portaljs/commit/40d80d2282bf8464c1aafb393975065078ad9ea3) Thanks [@olayway](https://github.com/olayway)! - Fix: missing files in the published package.
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [`b7158a5`](https://github.com/datopian/portaljs/commit/b7158a5be668018d9b947f9c9d63fa30fa91d18b) Thanks [@olayway](https://github.com/olayway)! - Fix what's getting published to npm.
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@portaljs/remark-callouts",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"description": "Remark plugin to add support for blockquote-based admonitions/callouts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -24,6 +24,12 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublish": "nx build remark-callouts"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"mdast-util-from-markdown": "^1.2.0",
|
||||
"svg-parser": "^2.0.4",
|
||||
|
||||
@@ -28,13 +28,7 @@
|
||||
"project": "packages/remark-callouts/package.json",
|
||||
"format": ["esm", "cjs"],
|
||||
"extractCss": true,
|
||||
"generateExportsField": true,
|
||||
"assets": [
|
||||
{
|
||||
"glob": "packages/remark-callouts/README.md",
|
||||
"input": ".",
|
||||
"output": "."
|
||||
},
|
||||
{
|
||||
"glob": "packages/remark-callouts/styles.css",
|
||||
"input": ".",
|
||||
|
||||
13
packages/remark-embed/CHANGELOG.md
Normal file
13
packages/remark-embed/CHANGELOG.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# @portaljs/remark-embed
|
||||
|
||||
## 1.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [`40d80d2`](https://github.com/datopian/portaljs/commit/40d80d2282bf8464c1aafb393975065078ad9ea3) Thanks [@olayway](https://github.com/olayway)! - Fix: missing files in the published package.
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [`b7158a5`](https://github.com/datopian/portaljs/commit/b7158a5be668018d9b947f9c9d63fa30fa91d18b) Thanks [@olayway](https://github.com/olayway)! - Fix what's getting published to npm.
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@portaljs/remark-embed",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"description": "Converts youtube link in mdx to an iframe embed",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -22,6 +22,12 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublish": "nx build remark-embed"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"unist-util-visit": "^4.1.1"
|
||||
},
|
||||
|
||||
@@ -29,15 +29,7 @@
|
||||
"tsConfig": "packages/remark-embed/tsconfig.lib.json",
|
||||
"project": "packages/remark-embed/package.json",
|
||||
"format": ["esm", "cjs"],
|
||||
"external": ["unist-util-visit"],
|
||||
"generateExportsField": true,
|
||||
"assets": [
|
||||
{
|
||||
"glob": "packages/remark-embed/README.md",
|
||||
"input": ".",
|
||||
"output": "."
|
||||
}
|
||||
]
|
||||
"external": ["unist-util-visit"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
13
packages/remark-wiki-link/CHANGELOG.md
Normal file
13
packages/remark-wiki-link/CHANGELOG.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# @portaljs/remark-wiki-link
|
||||
|
||||
## 1.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [`40d80d2`](https://github.com/datopian/portaljs/commit/40d80d2282bf8464c1aafb393975065078ad9ea3) Thanks [@olayway](https://github.com/olayway)! - Fix: missing files in the published package.
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [`b7158a5`](https://github.com/datopian/portaljs/commit/b7158a5be668018d9b947f9c9d63fa30fa91d18b) Thanks [@olayway](https://github.com/olayway)! - Fix what's getting published to npm.
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@portaljs/remark-wiki-link",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"description": "Parse and render wiki-style links in markdown especially Obsidian style links.",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -23,6 +23,12 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublish": "nx build remark-wiki-link"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"mdast-util-to-markdown": "^1.5.0",
|
||||
"mdast-util-wiki-link": "^0.0.2",
|
||||
|
||||
@@ -29,15 +29,7 @@
|
||||
"tsConfig": "packages/remark-wiki-link/tsconfig.lib.json",
|
||||
"project": "packages/remark-wiki-link/package.json",
|
||||
"format": ["esm", "cjs"],
|
||||
"external": ["mdast-util-wiki-link"],
|
||||
"generateExportsField": true,
|
||||
"assets": [
|
||||
{
|
||||
"glob": "packages/remark-wiki-link/README.md",
|
||||
"input": ".",
|
||||
"output": "."
|
||||
}
|
||||
]
|
||||
"external": ["mdast-util-wiki-link"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user