I want to show, depending on the selected checkbox respectively the corresponding graphs.
How do I link the checkbox with the graph, so that the graph is visible or invisible?
This is my code:
Code: Select all
Code, edit and compile here:
\documentclass[12pt,a4paper]{article} % Use A4 paper with a 12pt font size\usepackage[left=2.0cm,right=1.0cm,top=1.3cm,bottom=3.0cm,marginparwidth=3.4cm]{geometry} % Adjust page margins\usepackage[colorlinks=true, pdfborder={0 0 0}, hidelinks]{hyperref} % this is needed for forms and links within the text\usepackage{pgfplots} %Required for graph\usepackage{eforms}\usepackage[pdftex]{insdljs}%_________________________________________________________________________%the identifier is used create a temporary file which store the packed JavaScript code\begin{insDLJS}[axxy]{axxy}{Document Level JavaScript}function ThrottleType(){console.println('Value id: ' + event.target.name);if(event.target.name == "ACD"){app.alert("AC");}else if (event.target.name == "DCD"){app.alert("DC");}}\end{insDLJS}%_________________________________________________________________________\definecolor{Ocolor}{rgb}{0.95 0.4 0.12}\newcommand{\XStart}{0,0}\newcommand{\XStop}{5,0}\newcommand{\YStart}{0,2}\newcommand{\YStop}{0,-2}\newcommand{\drawCoordinateSystem}{\draw[step=.5cm, very thin,color=lightgray] (0,-1.5) grid (4.5,1.5);\draw [->] (\XStart) -- (\XStop) node[right]{$T$};\draw [<->](\YStop) -- (\YStart) node[above] {$F$};}\newcommand{\drawSIN}{\begin{tikzpicture}