|
| 1 | +--- |
| 2 | +sidebar_position: 21 |
| 3 | +--- |
| 4 | + |
| 5 | +# Crypto Coins Heatmap Widget |
| 6 | + |
| 7 | +This is the React component for the [Crypto Coins Heatmap Widget](https://www.tradingview.com/widget/crypto-coins-heatmap/) |
| 8 | + |
| 9 | +## Example |
| 10 | + |
| 11 | +``` |
| 12 | +import { CryptoCoinsHeatmap } from "react-ts-tradingview-widgets"; |
| 13 | +
|
| 14 | +<CryptoCoinsHeatmap colorTheme="dark"></CryptoCoinsHeatmap> |
| 15 | +``` |
| 16 | + |
| 17 | +import { CryptoCoinsHeatmap } from "react-ts-tradingview-widgets"; |
| 18 | + |
| 19 | +<CryptoCoinsHeatmap colorTheme="dark"></CryptoCoinsHeatmap> |
| 20 | + |
| 21 | +## Used Private types {#private-types} |
| 22 | + |
| 23 | +| Type | Value | |
| 24 | +| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 25 | +| BlockSize | market_cap_calc / market_cap_diluted_calc / 24h_vol_cmc / tvl / 24h_vol_to_market_cap / market_cap_to_tvl | |
| 26 | +| BlockColor | change|60 / change|240 / change / Perf.W / Perf.1M / Perf.3M / Perf.6M / Perf.Y / Perf.YTD / 24h_vol_change_cmc / 24h_vol_cmc / Volatility.D / Volatility.D / gap | |
| 27 | + |
| 28 | +## Used Public types {#public-types} |
| 29 | + |
| 30 | +| Type | Value | |
| 31 | +| ---------- | ------------ | |
| 32 | +| ColorTheme | light / dark | |
| 33 | + |
| 34 | +## Properties |
| 35 | + |
| 36 | +| Property | Type | Required | Default | Description | |
| 37 | +| ------------------- | ------------------------------------------------------------ | -------- | ---------------- | --------------------------------------------------------------------- | |
| 38 | +| dataSource | Crypto / CryptoWithoutBTC / CryptoWithoutStable / CryptoDefi | false | Crypto | Default dataSource | |
| 39 | +| blockSize | [_**BlockSize**_](#private-types) | false | market_cap_basic | Size of the blocks in the heatmap | |
| 40 | +| blockColor | [_**BlockColor**_](#private-types) | false | change | Color of the blocks in the heatmap | |
| 41 | +| locale | [Locales](../types/Locales.md) | false | en | Sets the default locale | |
| 42 | +| autosize | boolean | false | false | Sets the width and height to 100% | |
| 43 | +| symbolUrl | string | false | "" | Make widget redirect to symbol url | |
| 44 | +| colorTheme | [_**ColorTheme**_](#public-types) | false | light | Sets the default theme | |
| 45 | +| isZoomEnabled | boolean | false | true | Enables zoom | |
| 46 | +| hasTopBar | boolean | false | true | Enables top bar | |
| 47 | +| isSetDataSetEnabled | boolean | false | true | Enables set data set button. Can only be enabled if hasTopBar is true | |
0 commit comments