Skip to content

Instantly share code, notes, and snippets.

View mohit-kaushik's full-sized avatar
🛰️
Learning with less abstraction

Mohit Kaushik mohit-kaushik

🛰️
Learning with less abstraction
  • Accenture
  • New Delhi
View GitHub Profile
import React, { useState } from 'react'
import { View, Text, Dimensions } from 'react-native'
import { LineChart } from 'react-native-chart-kit'
import { Rect, Text as TextSVG, Svg } from "react-native-svg";
const Charts = () => {
let [tooltipPos, setTooltipPos] = useState({ x: 0, y: 0, visible: false, value: 0 })
return (
<View>
import React from 'react'
import { View, Text, Dimensions } from 'react-native'
import { LineChart } from 'react-native-chart-kit'
const Charts = () => {
return (
<View>
<LineChart
data={{
labels: ["January", "February", "March", "April", "May", "June"],