@urvish-procare/react-native-charts-wrapper 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ios/ReactNativeCharts/bar/RNBarChartView.swift +6 -0
- package/ios/ReactNativeCharts/bar/RNHorizontalBarChartView.swift +7 -0
- package/ios/ReactNativeCharts/bubble/RNBubbleChartView.swift +5 -0
- package/ios/ReactNativeCharts/candlestick/RNCandleStickChartView.swift +4 -0
- package/ios/ReactNativeCharts/combine/RNCombinedChartView.swift +4 -0
- package/ios/ReactNativeCharts/pie/RNPieChartView.swift +5 -0
- package/ios/ReactNativeCharts/radar/RNRadarChartView.swift +5 -0
- package/ios/ReactNativeCharts/scatter/RNScatterChartView.swift +5 -0
- package/package.json +2 -2
- package/react-native-charts-wrapper.podspec +1 -1
|
@@ -18,6 +18,12 @@ class RNBarChartView: RNBarChartViewBase {
|
|
|
18
18
|
return _dataExtract
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
override func layoutSubviews() {
|
|
22
|
+
super.layoutSubviews()
|
|
23
|
+
_chart.frame = self.bounds // Adjust the chart's frame to fill the entire component's bounds
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
21
27
|
override init(frame: CoreGraphics.CGRect) {
|
|
22
28
|
|
|
23
29
|
self._chart = BarChartView(frame: frame)
|
|
@@ -18,6 +18,13 @@ class RNHorizontalBarChartView: RNBarChartViewBase {
|
|
|
18
18
|
return _dataExtract
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
override func layoutSubviews() {
|
|
22
|
+
super.layoutSubviews()
|
|
23
|
+
_chart.frame = self.bounds // Adjust the chart's frame to fill the entire component's bounds
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
21
28
|
override init(frame: CoreGraphics.CGRect) {
|
|
22
29
|
|
|
23
30
|
self._chart = HorizontalBarChartView(frame: frame)
|
|
@@ -17,6 +17,11 @@ class RNBubbleChartView: RNBarLineChartViewBase {
|
|
|
17
17
|
return _dataExtract
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
override func layoutSubviews() {
|
|
21
|
+
super.layoutSubviews()
|
|
22
|
+
_chart.frame = self.bounds // Adjust the chart's frame to fill the entire component's bounds
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
|
|
21
26
|
override init(frame: CoreGraphics.CGRect) {
|
|
22
27
|
|
|
@@ -18,6 +18,10 @@ class RNCandleStickChartView: RNBarLineChartViewBase {
|
|
|
18
18
|
return _dataExtract
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
override func layoutSubviews() {
|
|
22
|
+
super.layoutSubviews()
|
|
23
|
+
_chart.frame = self.bounds // Adjust the chart's frame to fill the entire component's bounds
|
|
24
|
+
}
|
|
21
25
|
|
|
22
26
|
override init(frame: CoreGraphics.CGRect) {
|
|
23
27
|
|
|
@@ -17,6 +17,10 @@ class RNCombinedChartView: RNBarLineChartViewBase {
|
|
|
17
17
|
override var dataExtract: DataExtract {
|
|
18
18
|
return _dataExtract
|
|
19
19
|
}
|
|
20
|
+
override func layoutSubviews() {
|
|
21
|
+
super.layoutSubviews()
|
|
22
|
+
_chart.frame = self.bounds // Adjust the chart's frame to fill the entire component's bounds
|
|
23
|
+
}
|
|
20
24
|
|
|
21
25
|
override init(frame: CoreGraphics.CGRect) {
|
|
22
26
|
|
|
@@ -17,6 +17,11 @@ class RNPieChartView: RNChartViewBase {
|
|
|
17
17
|
return _dataExtract
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
override func layoutSubviews() {
|
|
21
|
+
super.layoutSubviews()
|
|
22
|
+
_chart.frame = self.bounds // Adjust the chart's frame to fill the entire component's bounds
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
override init(frame: CoreGraphics.CGRect) {
|
|
21
26
|
|
|
22
27
|
self._chart = PieChartView(frame: frame)
|
|
@@ -18,6 +18,11 @@ class RNRadarChartView: RNYAxisChartViewBase {
|
|
|
18
18
|
return _dataExtract
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
override func layoutSubviews() {
|
|
22
|
+
super.layoutSubviews()
|
|
23
|
+
_chart.frame = self.bounds // Adjust the chart's frame to fill the entire component's bounds
|
|
24
|
+
}
|
|
25
|
+
|
|
21
26
|
override func setYAxis(_ config: NSDictionary) {
|
|
22
27
|
let json = BridgeUtils.toJson(config)
|
|
23
28
|
let yAxis = _chart.yAxis
|
|
@@ -17,6 +17,11 @@ class RNScatterChartView: RNBarLineChartViewBase {
|
|
|
17
17
|
return _dataExtract
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
override func layoutSubviews() {
|
|
21
|
+
super.layoutSubviews()
|
|
22
|
+
_chart.frame = self.bounds // Adjust the chart's frame to fill the entire component's bounds
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
override init(frame: CoreGraphics.CGRect) {
|
|
21
26
|
|
|
22
27
|
self._chart = ScatterChartView(frame: frame);
|
package/package.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/urvish-procare/react-native-charts-wrapper.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.6.
|
|
7
|
+
"version": "0.6.4",
|
|
8
8
|
"description": "A react-native charts support both android and iOS.",
|
|
9
|
-
"author": "
|
|
9
|
+
"author": "urvish-procare",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"nativePackage": true,
|
|
12
12
|
"homepage": "https://github.com/urvish-procare/react-native-charts-wrapper",
|
|
@@ -3,7 +3,7 @@ require "json"
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
4
|
|
|
5
5
|
Pod::Spec.new do |s|
|
|
6
|
-
s.name = '
|
|
6
|
+
s.name = 'react-native-charts-wrapper'
|
|
7
7
|
s.version = package["version"]
|
|
8
8
|
s.summary = package["description"]
|
|
9
9
|
s.author = package["author"]
|