Skip to content

Commit

Permalink
Revert changes in demo to slider tooltip.
Browse files Browse the repository at this point in the history
  • Loading branch information
diogobernardino committed Jun 22, 2020
1 parent de82eff commit c8630d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion mobile/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ android {
dependencies {
implementation project(path: ':williamchart')
implementation project(path: ':slidertooltip')
implementation project(path: ':pointstooltip')
//implementation "com.diogobernardino:williamchart:$rootProject.williamchartVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72"
implementation 'androidx.appcompat:appcompat:1.1.0'
Expand Down
7 changes: 5 additions & 2 deletions mobile/src/main/java/com/db/williamchartdemo/DemoFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.db.williamchart.ExperimentalFeature
import com.db.williamchart.pointtooltip.PointTooltip
import com.db.williamchart.slidertooltip.SliderTooltip
import kotlinx.android.synthetic.main.demo_fragment.*

class DemoFragment : Fragment() {
Expand All @@ -30,7 +30,10 @@ class DemoFragment : Fragment() {
Color.TRANSPARENT
)
lineChart.animation.duration = animationDuration
lineChart.tooltip = PointTooltip()
lineChart.tooltip =
SliderTooltip().also {
it.color = Color.WHITE
}
lineChart.onDataPointTouchListener = { index, _, _ ->
lineChartValue.text =
lineSet.toList()[index]
Expand Down

0 comments on commit c8630d2

Please sign in to comment.