Skip to content

Commit 242f3df

Browse files
committed
fix #59
1 parent 0337c02 commit 242f3df

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

docs/docs/components/MiniChart.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ import { MiniChart } from "react-ts-tradingview-widgets";
4141
| underLineBottomColor | string | false | rgba(41, 98, 255, 0) | Sets under line bottom color |
4242
| isTransparent | boolean | false | false | Transparent background for component |
4343
| largeChartUrl | string | false | undefined | Make widget redirect to larger chart |
44+
| chartOnly | boolean | false | false | Show only chart without header |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-ts-tradingview-widgets",
3-
"version": "1.2.4",
3+
"version": "1.2.5",
44
"description": "This is a React component library for TradingView Widgets. TypeScript is fully supported for every component!",
55
"main": "dist/index.js",
66
"scripts": {

src/components/MiniChart.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export type MiniChartProps = {
1515
isTransparent?: boolean;
1616
autosize?: boolean;
1717
largeChartUrl?: string;
18+
chartOnly?: boolean;
1819

1920
children?: never;
2021

@@ -34,6 +35,7 @@ const MiniChart: React.FC<MiniChartProps> = ({
3435
isTransparent = false,
3536
autosize = false,
3637
largeChartUrl = undefined,
38+
chartOnly = false,
3739
copyrightStyles,
3840
...props
3941
}) => {
@@ -52,6 +54,7 @@ const MiniChart: React.FC<MiniChartProps> = ({
5254
isTransparent,
5355
autosize,
5456
largeChartUrl,
57+
chartOnly,
5558
...props,
5659
}}
5760
scriptSRC="https://s3.tradingview.com/external-embedding/embed-widget-mini-symbol-overview.js"

0 commit comments

Comments
 (0)