Skip to content

Commit

Permalink
Merge pull request #271 from equinor/task/269-add-distribution-track-…
Browse files Browse the repository at this point in the history
…config-to-readme

Revised readme and added some notes on how to use distribution track. Inspired by the readme in videx-map.
  • Loading branch information
johannesleite authored Sep 3, 2024
2 parents 25d2473 + 12cb817 commit 18658e2
Showing 1 changed file with 59 additions and 5 deletions.
64 changes: 59 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
![](https://github.com/equinor/videx-wellog/workflows/Node%20CI/badge.svg)
![](https://img.shields.io/npm/v/@equinor/videx-wellog)
# Videx Well Log

# Videx well log
Well log powered by the ViDEx well log components and [Volve open data sets](https://data.equinor.com/) provided by Equinor.

![volve-well-log](./resources/volve.png)
_Well log powered by the ViDEx well log components and [Volve open data sets](https://data.equinor.com/) provided by Equinor._

## Installation
```
npm install @equinor/videx-wellog
```
Expand All @@ -18,9 +21,60 @@ npm run docs

```
# from root:
cd examples/storybook
npm run storybook:install
npm run storybook
```

## Contribute:
How to Contribute is described [here](./contributing.md)
# Tracks

Tracks are containers that can be added to a wellog component. A Track is resposible to react to lifecycle events provided by its container.

## Distribution Track

The Distribution Track visualizes the distribution of categories along a depth axis, showing how different components vary continuously or discretely with depth.

### Config
Provided is a sample configuration object for setting up a Distribution Track.

```js
{
label: 'Distribution',
abbr: 'Dst',
data: [
{
"depth": 1,
"composition": [
{ "key": "Red Stone", "value": 80.00 },
{ "key": "Grey Stone", "value": 20.00 }
]
},
{
"depth": 2,
"composition": [
{ "key": "Red Stone", "value": 40.00 },
{ "key": "Grey Stone", "value": 60.00 }
]
}
],
legendConfig: distributionLegendConfig,
components: {
'Red Stone': {
color: 'FireBrick',
textColor: '#8E1B1B', // Optional, will use color by default
},
'Grey Stone': {
color: 'SlateGrey',
},
},
interpolate: true,
}
```

**Note:** _distributionLegendConfig_ will use color given in _components_.

### Assumptions
- Depth is sorted in ascending order.
- Composition totals 100.

## Contribution
We greatly appreciate contributions to this repository, see our [contribution page](./contributing.md) on how to get started.

0 comments on commit 18658e2

Please sign in to comment.