I use:
\documentclass[hyperref={unicode,bookmarks=true}, clock,fragile]{beamer}
\usepackage{amsmath,amssymb,amsfonts, mathrsfs}
\usepackage[utf8]{vietnam}
\usepackage{tikz,tkz-tab,pgf}
\usepackage{pgfplots}
\usetikzlibrary{arrows,decorations,decorations.pathmorphing,
shapes}
\usetikzlibrary{arrows,decorations,decorations.pathmorphing,
shapes,decorations.text,trees,positioning,datavisualization}
\usepackage{pgfcore}
\usepgflibrary{datavisualization.formats.functions}
\usetheme{Darmstadt}
\usetheme{CambridgeUS}
\begin{document}
\begin{frame}
\begin{tikzpicture}[baseline]
\datavisualization [ scientific axes=clean,
y axis=grid,
visualize as smooth line/.list={sin,cos,tan},
style sheet=strong colors,
style sheet=vary dashing,
sin={label in legend={text=$\sin x$}},
cos={label in legend={text=$\cos x$}},
tan={label in legend={text=$\tan x$}},
data/format=function ]
data [set=sin] {
var x : interval [-0.5*pi:4];
func y = sin(\value x r);
}
data [set=cos] {
var x : interval [-0.5*pi:4];
func y = cos(\value x r);
}
data [set=tan] {
var x : interval [-0.3*pi:.3*pi];
func y = tan(\value x r);
};
\end{tikzpicture}
\end{frame}
\end{document}
But when run pdfLatex I get"! Package pgfkeys Error: I do not know the key '/tikz/data visualization/style sheet'" How to fix it? Thanks.
\listfilesto your input and report the resultsFile listin the question? (BTW, you might also minimise your example further: I suspect things likebeamerand Vietnamese text are not relevant to the problem.) – Joseph Wright Oct 15 '14 at 08:55\pgfversionin your document and make sure it is v3.00. Data visualization is a recent feature. The code works on my computer. – percusse Oct 15 '14 at 09:23.tds.zipfile from SourceForge, see method 3 in How do I install an individual package on a Linux system? for intruction – Torbjørn T. Oct 17 '14 at 20:42pgf, in this case). – Paul Gessler Feb 18 '15 at 13:49