Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arc-hydro-components

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-hydro-components

A collection of components designed to be used to connect to hydrological data and services

  • 0.13.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Arc Hydro Components

A collection of components designed to be used to connect to hydrological data and services

Installation

npm install --save arc-hydro-components

Usage

import { HydroChart } from 'arc-hydro-components';
...
const ChartComponent = (mapView: MapView) => {

    const preference = {
      inputId: <string>,
      legendOn: true | false,
      scrollbarOn: true | false,
      yaxisTitleOn: true | false,
      titleOn: true | false,
    };
    
    const localizeStrings = {
      overviewMessage: "Please select a reach with data to view its forecasted flows.",
      yAxisTitle: "Stream Flow (cms)",
      xAxisTitle: "",
      loadingText: "Collecting forecast data...",
      forecastLabel: "Forecast",
      uncertaintyLabel: "Uncertainty",
      historicalLabel: "Historical",
      yearLabel: "Yr",
      title: "Stream Flow (cms)"
    }

	const theme = {
		default: {
			forecast: '#004874',
			uncertainty: 'rgba(117, 117, 117, 0.35)',
			bands: {
				2: 'rgba(75, 172, 205, 0.4)',
				5: 'rgba(247, 210, 63, 0.4)',
				10: 'rgba(245, 128, 64, 0.4)',
				25: 'rgba(239, 71, 72, 0.4)',
				50: 'rgba(144, 83, 161, 0.4)',
			},
			timeExtent: '#b30000',
		},
	};

    return(
        <div
            style={{
                display: 'flex',
                justifyContent: 'center',
                height: '100%',
            }}
        >
            <HydroChart
              mapView={view}
              localizeStrings={localizeStrings}
              theme={theme.default}
              model={waterModel}
              preference={preference}
            />
        </div>
    )
}

FAQs

Package last updated on 27 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc